Esempio n. 1
0
        public ActionResult Edit(decimal id)
        {
            StoreSupplier s = new StoreSupplier();

            s = s.GetSuppliers()
                .Where(x => x.Supplier_Id == id).ToList()[0];
            return(View("New", s));
        }
Esempio n. 2
0
        public ActionResult SupplierSearch(string query)
        {
            StoreSupplier        menu = new StoreSupplier();
            List <StoreSupplier> StoreSupplierList = menu.GetSuppliers();

            if (!String.IsNullOrWhiteSpace(query))
            {
                StoreSupplierList = StoreSupplierList.Where(m => m.Name.ToLower().Contains(query)).ToList();
            }

            return(Json(StoreSupplierList, JsonRequestBehavior.AllowGet));
        }
Esempio n. 3
0
        // GET: StoreSupplier
        public ActionResult Index()
        {
            StoreSupplier s = new StoreSupplier();

            return(View(s.GetSuppliers()));
        }