Beispiel #1
0
        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);

        }
Beispiel #2
0
        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));
        }