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 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.

Sanwar RanwaRank #23 · 44.7K reputationPosted Oct 5, 2018, 9:11 AM EDT
Jaish MathewsRank #225 · 11K reputationPosted Oct 5, 2018, 11:18 PM EDT
Hardik DeshaniRank #881 · 2.5K reputationPosted Oct 6, 2018, 12:44 AM EDT
girish parganihaRank #6,237 · 272 reputationPosted Oct 5, 2018, 8:41 PM EDT
girish parganihaRank #6,237 · 272 reputationPosted Oct 6, 2018, 1:39 AM EDT