Example #1
0
        public JsonResult Select_BrandProduct2wheel(string DealerCode, string VehicleType)
        {
            List <GetProductSpVM> data;

            DealerCode = Session["DealerCode"].ToString();
            bool result = false;

            // List<GetProductSpVM> ddlProduct = new List<GetProductSpVM>();
            data = VehReceiptMethods.Get_BrandProductData2wheel(VehicleType, 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));
        }