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);
        }
Exemplo n.º 2
0
 public ActionResult Edit(UI.Models.Supplier supplierdata)
 {
     //Edits and modifies the Supplier Information
     return(View());
 }
Exemplo n.º 3
0
 public ActionResult Add(UI.Models.Supplier supplierdata)
 {
     //Creates Supplier from he supplier data
     return(View());
 }