Beispiel #1
0
 public JsonResult AddCustomer(string FirstName, string LastName, string CustMobile, int State, int City)
 {
     if (ModelState.IsValid)
     {
         SalesDetails _details = new SalesDetails();
         return(Json(ReturnAjaxAlertMessage(_details.AddCustomer(FirstName, LastName, CustMobile, State, City)).ToList(), JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(Json(GetErrorList(), JsonRequestBehavior.AllowGet));
     }
 }