public ActionResult Index() { //Displays All the supppliers of the Company List<Supplier> AllSuppliers = new List<Supplier>(); List<Business.ApplicationService.customer> suppliers = businessdata.GetAllSuppliers(Session["companyid"].ToString()); foreach (Business.ApplicationService.customer appSupplier in suppliers) { Supplier objSupplier = new Supplier(); objSupplier.email = appSupplier.email; objSupplier.fname = appSupplier.name; objSupplier.lname= appSupplier.name; AllSuppliers.Add(objSupplier); } return View(AllSuppliers); }
public ActionResult Edit(UI.Models.Supplier supplierdata) { //Edits and modifies the Supplier Information return(View()); }
public ActionResult Add(UI.Models.Supplier supplierdata) { //Creates Supplier from he supplier data return(View()); }