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()); }
public void Delete(int id) { _showService.Delete(id); }