Beispiel #1
0
        public ActionResult SearchCustomer(string name)
        {
            if ((ModelState.IsValid) && (!string.IsNullOrEmpty(name)))
            {
                var AzureTable = new StudentBusiness.AzureTablesBusiness();
                return View("Index", AzureTable.GetCustomerByName("customer", name));
            }

            return RedirectToAction("Index");
        }
Beispiel #2
0
        public ActionResult AddCustomer(AzureTablesModel.StudentEntity customer)
        {
            if (ModelState.IsValid)
            {
                var AzureTable = new StudentBusiness.AzureTablesBusiness();
                AzureTable.InsertCustomer("customer", customer);
            }

            return RedirectToAction("Index");
        }