public ListarTodosMovimientoResponse ListarTodos()
 {
     try
     {
         var response = new ListarTodosMovimientoResponse();
         var bc       = new MovimientoComponent();
         response.Result = bc.ToList();
         return(response);
     }
     catch (Exception ex)
     {
         var httpError = new HttpResponseMessage()
         {
             StatusCode   = (HttpStatusCode)422,
             ReasonPhrase = ex.Message
         };
         throw new HttpResponseException(httpError);
     }
 }
예제 #2
0
        public List <Movimiento> ToList()
        {
            var bc = new MovimientoComponent();

            return(bc.ToList());
        }