Пример #1
0
 public ActionResult AddRole(CustomerRole item)
 {
     try
     {
         _db.AddCustomerRole(Guid.Empty, item.RoleName);
         return(RedirectToAction(nameof(Index)));
     }
     catch
     {
         return(View(item));
     }
 }