public ToListResponse ToList() { try { var response = new ToListResponse(); var bc = new CitaComponent(); response.Result = bc.ListarTodos(); return(response); } catch (Exception ex) { var httpError = new HttpResponseMessage() { StatusCode = (HttpStatusCode)422, ReasonPhrase = ex.Message }; throw new HttpResponseException(httpError); } }
public List <Cita> ListarTodos() { var bc = new CitaComponent(); return(bc.ListarTodos()); }
public List <Cita> ListarTodos() { CitaComponent CitaComponent = new CitaComponent(); return(CitaComponent.ListarTodos()); }
public List <Cita> ListarTodos(int pacienteId) { var bc = new CitaComponent(); return(bc.ListarTodos(pacienteId)); }