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

            response.Data = _rolService.DeleteRol(id);
            return(response);
        }
예제 #2
0
        public async Task <IActionResult> Delete(long Id)
        {
            var result = await _rolService.DeleteRol(Id);

            var response = new APIResponse <bool>(result);

            return(Ok(response));
        }
예제 #3
0
        public async Task <ActionResult> Delete(int id)
        {
            await _rolService.DeleteRol(id);

            return(NoContent());
        }