Ejemplo n.º 1
0
            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);
                }
            }
Ejemplo n.º 2
0
        public List <Cita> ListarTodos()
        {
            var bc = new CitaComponent();

            return(bc.ListarTodos());
        }
Ejemplo n.º 3
0
        public List <Cita> ListarTodos()
        {
            CitaComponent CitaComponent = new CitaComponent();

            return(CitaComponent.ListarTodos());
        }
Ejemplo n.º 4
0
        public List <Cita> ListarTodos(int pacienteId)
        {
            var bc = new CitaComponent();

            return(bc.ListarTodos(pacienteId));
        }