I have something like this:
public ActionResult ImageReplace(int imgid,HttpPostedFileBase file) { string keyword = imgid.ToString(); .
Use this:
@using (Html.BeginForm("ImageReplace", "Member", new { imgid = @Model.Id }, FormMethod.Post, new { enctype = "multipart/form-data" }))