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