Exemplo n.º 1
0
        public ActionResult Add([Bind(Include = "Name,Description,ImageId")] AMProcessType ProcessT)
        {
            if (!ModelState.IsValid)
            {
                return(View(ProcessT));
            }
            bool resAdd        = false;
            var  addedProcessT = DMLObj.AddNewProcessType(ProcessT, out resAdd);

            if (resAdd)
            {
                return(RedirectToAction("Index", "SysAdmin"));
            }
            return(View(ProcessT));
        }