public ActionResult FinishRegistration(Customer model, HttpPostedFileBase Image) { //MessageBox.Show("I am in POST"); CustomerDAL obj = new CustomerDAL(); if (obj.IsUniqueUserID(model.UserID) && ModelState.IsValid) { if (Image != null) { // product.ImageMimeType = image.ContentType; model.PhotoIDProof = new byte[Image.ContentLength]; Image.InputStream.Read(model.PhotoIDProof, 0, Image.ContentLength); } obj.FinishReg(model); return RedirectToAction("Login", "CommonBiz"); } else { ModelState.AddModelError("", "User Id not available"); return View(model); } }