Exemplo n.º 1
0
        public ActionResult Create(SetupEmployeeMasterModel model)
        {
            SetupEmployeeMasterProviders SEMPro = new SetupEmployeeMasterProviders();

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