public ActionResult Create() { ViewBag.ProductList = new SelectList(SVM.ProductsList(), "product_ID", "name"); ViewBag.WayToPayList = new SelectList(SVM.WayToPayListing(), "wayToPay_ID", "wayToPay"); ViewBag.ClientList = new SelectList(CVM.ClientsList(), "client_ID", "name"); ViewBag.TypeList = new SelectList(PVM.SaleTypeListing(), "sale_type_ID", "sale_type"); return(View()); }
public ActionResult Create() { IEnumerable <Products> List = PVM.SaleTypeListing(); ViewBag.TypeList = new SelectList(PVM.SaleTypeListing(), "sale_type_ID", "sale_type", List.First()); return(View()); }