Example #1
0
 public IActionResult InitAllCounters()
 {
     if (!userContext.IsUserInRole(AccountConstants.Roles.GlobalAdministrator))
     {
         return(RedirectToAction(nameof(HomeController.AccessDenied), HomeController.ControlerName));
     }
     service.InitAllCounters();
     return(Content("InitAllCounters done."));
 }