public ActionResult GetVendorDataList(VendorModel.VendorSearchModel model) { try { return(Json((new VendorModel()).GetVendorDataList(model), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { error = ex.Message }, JsonRequestBehavior.AllowGet)); } }
//public ActionResult GetVendorDataList(DateTime FromDate, DateTime ToDate) //{ // try // { // return Json(new { result = new VendorModel().GetVendorListData(FromDate, ToDate) }, JsonRequestBehavior.AllowGet); // } // catch (Exception Ex) // { // return Json(new { result = Ex.Message }, JsonRequestBehavior.AllowGet); // } //} public ActionResult BuildPaganationVendorList(VendorModel.VendorSearchModel model) { try { return(Json(new { NOP = (new VendorModel()).BuildPaganationVendorList(model) }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { error = ex.Message }, JsonRequestBehavior.AllowGet)); } }