// PUT public Quotation UpdateQuotation(Quotation quo) { if (quo.Id <= 0 || quo.Quantity <= 0 || (String.IsNullOrEmpty(quo.CodProd))) { Console.Out.WriteLine("Id o cantidad incorrecta o codigo de Producto erroneo"); throw new Exception("Id cantidad incorrecta o codigo de Producto erroneo"); } Data.Models.Quotation qu = _dbContext.UpdateQuotation(quo.Id, quo.CodProd, quo.Quantity); return(DTOMappers.MapQuotationDL(qu)); }
public Quotation UpdateQuotation(Quotation quo) { Data.Models.Quotation qu = _dbContext.UpdateQuotation(DTOMappers.MapGroupLD(quo)); return(DTOMappers.MapQuotationDL(qu)); }
public Quotation UpdateSaleFalse(int id) { Data.Models.Quotation qu = _dbContext.UpdateSaleFalse(id); return(DTOMappers.MapQuotationDL(qu)); }