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

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