public ActionResult Create(QuotationViewModel item) { try { // TODO: Add insert logic here Quotation AVM = new Quotation(); AVM.Id = item.Id; AVM.Date_expiration = item.Date_expiration; AVM.QuoteNo = item.QuoteNo; AVM.Total = item.Total; AVM.TVA = item.TVA; QuotationService.Add(AVM); QuotationService.Commit(); return(RedirectToAction("Index")); } catch { return(View()); } }