public ActionResult EditGroup(CollateralGroupInformation cInfo, HttpPostedFileBase CollateralImage) { if (ModelState.IsValid) { using (var cRepository = new CollateralRepository()) { cRepository.UpdateCollateral(cInfo, CollateralImage != null ? CollateralImage.InputStream : null, CollateralImage != null ? CollateralImage.FileName : null); return(RedirectToAction("Manage")); } } return(View(cInfo)); }