Esempio n. 1
0
 public ActionResult CreateRole(Role roleToCreate)
 {
     try
     {
         _roleProviderApplicationService.CreateRole(roleToCreate.RoleName);
     }
     catch (Exception)
     {
         throw;
     }
     return(RedirectToAction("Index"));
 }
Esempio n. 2
0
 public override void CreateRole(string roleName)
 {
     _roleProviderApplicationService.CreateRole(roleName);
 }