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 Precio Find(int?id) { var bc = new PrecioComponent(); return(bc.Find(id)); }