Beispiel #1
0
        public ActionResult Edit(int id, SetupEmployeeMasterModel model)
        {
            SetupEmployeeMasterProviders SEMPro = new SetupEmployeeMasterProviders();

            if (ModelState.IsValid)
            {
                int i = SEMPro.Update(model);
                if (i != 0)
                {
                    TempData["success"] = UtilityMessage.edit;
                    return(RedirectToAction("Index"));
                }
                else
                {
                    TempData["success"] = UtilityMessage.edit;
                    return(RedirectToAction("Index"));
                }
            }
            return(View(model));
        }