I have a properties in my Item model class like FoodType,Price,Description,Amount,Image.
I have written 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 whole code for [HttpPost] Create action method.
FoodType is foreignkey one to many relationship.
My model Entity connectionstring object is FoodAppEntities db=new FoodAppEntities();