Example #1
0
        public JsonResult DeleteRol(int id)
        {
            var response = new JsonResult();

            response.Data = _rolService.DeleteRol(id);
            return(response);
        }
Example #2
0
        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());
        }