public IActionResult Delete(int id)
 {
     if (!UserIsInRole(UserTypeEnum.Admin))
     {
         return(Unauthorized("You are not in role to permit this action"));
     }
     _service.Delete(id);
     return(Ok());
 }
Example #2
0
 public void Delete(int id)
 {
     _showService.Delete(id);
 }