Ejemplo n.º 1
0
 public async Task <ActionResult> GetAllInactives()
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     try
     {
         return(Ok(await _service.GetAllInactives()));
     }
     catch (ArgumentException ex)
     {
         return(StatusCode((int)HttpStatusCode.InternalServerError, ex.Message));
     }
 }