public JsonResult DeleteRol(int id) { var response = new JsonResult(); response.Data = _rolService.DeleteRol(id); return(response); }
public async Task <IActionResult> Delete(long Id) { var result = await _rolService.DeleteRol(Id); var response = new APIResponse <bool>(result); return(Ok(response)); }
public async Task <ActionResult> Delete(int id) { await _rolService.DeleteRol(id); return(NoContent()); }