Hi,
I have a properties in my Item model class like FoodType,Price,Description,Amount,Image.
I have write HttpPostedFileBase File in my Item model class for image upload and change the Create .cshtml file to <input type="file" name="File" /> for image upload to database.
Can anyone help me how to write code for [HttpPost] Create action method.
FoodType is foreignkey one to many relationship.
My model Entitity connectionstring object is "FoodAppEntities db=new FoodAppEntities(); "
Thanks.