示例#1
0
        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"));
        }