public ActionResult UpdateBilling(IPQuotesModel model) { // model.quote_tax_rate.quote_id = model.quote_id; //model.quote_amount.quote_id = model.quote_id; quoteService.UpdateStatus(model); if (model.quote_items != null) { quoteItemService.Update(model.quote_items, model.quote_id); } model.quote_amount.quote_id = model.quote_id; quoteAmountsService.Update(model.quote_amount); //quoteTaxRatesService.Update(model.quote_tax_rate); return(RedirectToAction("Billing", new { id = model.quote_id })); }
public ActionResult UpdateQuote(IPQuotesModel model) { // model.quote_tax_rate.quote_id = model.quote_id; //model.quote_amount.quote_id = model.quote_id; if (!string.IsNullOrEmpty(model.quote_date_expires_string)) { model.quote_date_expires = DateTime.ParseExact(model.quote_date_expires_string, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture); } else { model.quote_date_expires = DateTime.Now; } quoteService.UpdateStatus(model); if (model.quote_items != null) { quoteItemService.Update(model.quote_items, model.quote_id); } model.quote_amount.quote_id = model.quote_id; quoteAmountsService.Update(model.quote_amount); //quoteTaxRatesService.Update(model.quote_tax_rate); return(RedirectToAction("Quote", new { id = model.quote_id })); }