public ActionResult New(WorkCenter WorkCenter)
        {
            if (ModelState.IsValid)
            {
                if (base.genericMgr.FindAll<long>(duiplicateVerifyStatement, new object[] { WorkCenter.Code })[0] > 0)
                {
                    SaveErrorMessage(Resources.MD.WorkCenter.WorkCenterErrors_Existing_Code, WorkCenter.Code);
                }
                else
                {
                    base.genericMgr.Create(WorkCenter);
                    SaveSuccessMessage(Resources.MD.WorkCenter.WorkCenter_Added);
                    return RedirectToAction("Edit/" + WorkCenter.Code);
                }
            }

            return View(WorkCenter);
        }
        public ActionResult Edit(WorkCenter WorkCenter)
        {
            if (ModelState.IsValid)
            {
                base.genericMgr.Update(WorkCenter);
                SaveSuccessMessage(Resources.MD.WorkCenter.WorkCenter_Updated);
            }

            return View(WorkCenter);
        }