Пример #1
0
        public ActionResult Create(RolesViewModel collection)
        {
            try
            {
                // TODO: Add insert logic here
                if (ModelState.IsValid)
                {
                    ProcessRoles.CreateRole(collection);
                }

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }