public ActionResult Edit(CMSModel objCMS) { CMSHelper cmsHelper = new CMSHelper(); int count = cmsHelper.UpateCMS(objCMS); if (count == 0) { TempData["CommonMessage"] = AppLogic.setMessage(count, "CMS Updated Successfully."); } else { TempData["CommonMessage"] = AppLogic.setMessage(count, "CMS Update Failed."); } return(RedirectToAction("Index")); }