// Post:Create Saless public ActionResult Create(Sales sales) { if (ModelState.IsValid && sales.SalesDetails != null && sales.SalesDetails.Count > 0) { sales.IsDeleted = false; status = salesBll.Create(sales); if (status == true) { ViewBag.SuccessMsg = "Sales Item Successfully"; ModelState.Clear(); } } ViewBag.ItemId = dropdown.GetAllItem(); ViewBag.OutletId = dropdown.GetAllOutlet(); ViewBag.EmployeeId = dropdown.GetAllEmployee(); ViewBag.PartyId = dropdown.GetAllSupplier(); return(View()); }