public ActionResult GetCustomers2(FormCollection postedFormData) { CustomerBusinessService cbs = new CustomerBusinessService(); string FieldName = Convert.ToString(postedFormData["FieldName"]); string KeyWord = Convert.ToString(postedFormData["KeyWord"]); return Json(cbs.GetCustomers(FieldName, KeyWord).Customers); }
public ActionResult GetCustomers(string FieldName, string KeyWord) { CustomerBusinessService cbs = new CustomerBusinessService(); return Json(cbs.GetCustomers(FieldName, KeyWord).Customers); }