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"); }
public ActionResult AddCustomer(AzureTablesModel.StudentEntity customer) { if (ModelState.IsValid) { var AzureTable = new StudentBusiness.AzureTablesBusiness(); AzureTable.InsertCustomer("customer", customer); } return RedirectToAction("Index"); }