public Precio Agregar(Precio precio) { try { var bc = new PrecioComponent(); return(bc.Agregar(precio)); } catch (Exception e) { Console.WriteLine(e.Message); throw e; } }
public void Actualizar(PrecioRequest request) { try { var bc = new PrecioComponent(); bc.Edit(request.Precio); } catch (Exception ex) { var httpError = new HttpResponseMessage() { StatusCode = (HttpStatusCode)422, ReasonPhrase = ex.Message }; throw new HttpResponseException(httpError); } }
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 PrecioResponse LeerPorId(int id) { try { var response = new PrecioResponse(); var bc = new PrecioComponent(); response.Result = bc.Find(id); return(response); } catch (Exception ex) { var httpError = new HttpResponseMessage() { StatusCode = (HttpStatusCode)422, ReasonPhrase = ex.Message }; throw new HttpResponseException(httpError); } }
public PrecioResponse Agregar(PrecioRequest request) { try { var response = new PrecioResponse(); var bc = new PrecioComponent(); response.Result = bc.Add(request.Precio); 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()); }
public void Remove(Precio precio) { var bc = new PrecioComponent(); bc.Remove(precio); }
public Precio Find(int?id) { var bc = new PrecioComponent(); return(bc.Find(id)); }
public void Eliminar(Precio precio) { var bc = new PrecioComponent(); bc.Eliminar(precio); }
public List <Precio> ListarTodos() { PrecioComponent PrecioComponent = new PrecioComponent(); return(PrecioComponent.ListarTodos()); }
public List <Precio> ListarTodos() { var bc = new PrecioComponent(); return(bc.ListarTodos()); }
public List <Precio> BuscarPorTipoServicio(int tipoServicioId) { var bc = new PrecioComponent(); return(bc.BuscarPorTipoServicio(tipoServicioId)); }
public bool Delete(Precio ID) { PrecioComponent PrecioComponent = new PrecioComponent(); return(PrecioComponent.Delete(ID)); }
public Precio GetByID(int ID) { PrecioComponent PrecioComponent = new PrecioComponent(); return(PrecioComponent.GetByID(ID)); }
public bool Edit(Precio Precio) { PrecioComponent PrecioComponent = new PrecioComponent(); return(PrecioComponent.Edit(Precio)); }
public Precio Create(Precio Precio) { PrecioComponent PrecioComponent = new PrecioComponent(); return(PrecioComponent.Agregar(Precio)); }
public Precio Agregar(Precio precio) { var bc = new PrecioComponent(); return(bc.Agregar(precio)); }
public Precio BuscarPorId(int id) { var bc = new PrecioComponent(); return(bc.Details(id)); }
public void Delete(int id) { var bc = new PrecioComponent(); bc.Delete(id); }
public Precio Editar(Precio precio) { var bc = new PrecioComponent(); return(bc.Editar(precio)); }
public Precio ReadBy(int id) { var bc = new PrecioComponent(); return(bc.ReadBy(id)); }
public Precio Eliminar(int id) { var bc = new PrecioComponent(); return(bc.Eliminar(id)); }
public Precio Ver(Precio precio) { var bc = new PrecioComponent(); return(bc.Ver(precio)); }
public List <Precio> Read() { var bc = new PrecioComponent(); return(bc.Read()); }
public Precio Add(Precio precio) { var bc = new PrecioComponent(); return(bc.Add(precio)); }
public void Update(Precio objeto) { var bc = new PrecioComponent(); bc.Update(objeto); }
public void Edit(Precio precio) { var bc = new PrecioComponent(); bc.Edit(precio); }