public JsonResult Select_BrandProduct(string EnquiryId, string DealerCode) { List<PrdouctVM> data; DealerCode = Session["DealerCode"].ToString(); bool result = false; data = VehReceiptMethods.Get_BrandProductData(EnquiryId, DealerCode,Session["VehicleCategory"].ToString()); if (data.Count > 0) { result = true; } return Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet); }
public JsonResult Select_BrandProduct(string EnquiryId, string DealerCode, string vehType) { List <GetProductSpVM> data; DealerCode = Session["DealerCode"].ToString(); bool result = false; // List<GetProductSpVM> ddlProduct = new List<GetProductSpVM>(); data = VehReceiptMethods.Get_BrandProductData(EnquiryId, DealerCode); Session["VehicleRecord"] = data; // ViewBag.ddlProduct = ddlProduct; //data = VehReceiptMethods.Get_BrandProductData(EnquiryId,DealerCode); if (data.Count > 0) { result = true; } return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet)); }