How to use an instance of a class in view?
I am new to MVC, i created an object of a class in a controller. Can i use
the properties of the object in a view?
public ActionResult UploadNew(HttpPostedFileBase fnma1003File)
{
Loan loan = null;
if (fnma1003File.ContentLength > 0)
{
User currentUser = (User)base.User;
-------------
}
}
How to use that currentUser object in my view?
No comments:
Post a Comment