public async Task <IActionResult> ListFromService(int idServicio, DateTime?creationDateFrom = null, DateTime?creationDateTo = null, int?idTipoRecurso = null) { try { var filter = new ServicioRecursoFilterDTO(creationDateFrom, creationDateTo, idTipoRecurso); var entities = await _recursoService.ListFromService(idServicio, filter, Usuario); return(Ok(entities)); } catch (Exception e) { return(StatusCode(500, e.Message)); } }