Esempio n. 1
0
        public ActionResult Edit(CheckListMaster checkList)
        {
            if (ModelState.IsValid)
            {
              
                this.genericMgr.UpdateWithTrim(checkList);
                SaveSuccessMessage(Resources.FMS.CheckList.CheckList_Added);
            }

            return View(checkList);
        }
Esempio n. 2
0
        public ActionResult New(CheckListMaster checkList)
        {
            if (ModelState.IsValid)
            {
                if (this.genericMgr.FindAll<long>(duiplicateVerifyStatement, new object[] { checkList.Code })[0] > 0)
                {
                    SaveErrorMessage(Resources.SYS.ErrorMessage.Errors_Existing_Code, checkList.Code);
                }
                else
                {
                  
                    this.genericMgr.CreateWithTrim(checkList);
                    SaveSuccessMessage(Resources.FMS.CheckList.CheckList_Added);
                    return RedirectToAction("Edit/" + checkList.Code);
                }
            }

            return View(checkList);
        }