Esempio n. 1
0
        public IActionResult GetModelVariantList()
        {
            VehicleRepositry    vehicleRepositry = new VehicleRepositry();
            List <ModelVariant> modelList        = vehicleRepositry.GetModelVariantList();

            return(Json(modelList));
        }
Esempio n. 2
0
        public PartialViewResult LoadVehicleBasicDetail(string mode, string value, string name)
        {
            switch (mode)
            {
            case "MD":
                VehicleRepositry    vehicleRepositry = new VehicleRepositry();
                List <ModelVariant> modelList        = vehicleRepositry.GetModelVariantList().Where(x => x.MakeId == Convert.ToInt64(value)).ToList();
                return(PartialView("_ModelList", modelList));

            default:
                break;
            }
            return(PartialView());
        }