Ejemplo n.º 1
0
        public async Task <IActionResult> CustomerVehicleAllotment()
        {
            var model = new VehicleAllotmentModel();

            model.AvailableModels       = BindModels(await _modelsMasterService.GetAllModelsListAsync());
            model.AvailableVarientTypes = BindVarientsType();
            //model.AvailableVarients = BindVarients();
            model.CustomerDetails.AvailableStates = await BindStates();

            model.AvailableTeamLeaders = await BindTeamLeaders();

            //model.AvailableSalesConsultants = BindSalesConsultants();
            model.CustomerDetails.AvailableSalutations = BindSalutations();
            model.AvailableBranches = await BindBranches();

            return(View(model));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> GenarateQuote(int custId)
        {
            var model = new GenerateQuotationModel();

            model.Url                   = HttpContext.Request.Scheme + "://" + HttpContext.Request.Host.Value;
            model.AvailableModels       = BindModels(await _modelsMasterService.GetAllModelsListAsync());
            model.AvailableVarientTypes = BindVarientsType();
            //model.AvailableVarients = BindVarients();
            model.CustomerDetails.AvailableStates = await BindStates();

            model.AvailableTeamLeaders = await BindTeamLeaders();

            //model.AvailableSalesConsultants = BindSalesConsultants();
            model.CustomerDetails.AvailableSalutations = BindSalutations();
            model.AvailableSourceOfEnquiry             = BindEnquirySource();
            return(View(model));
        }
Ejemplo n.º 3
0
        // GET: ModelMasterController
        public async Task <ActionResult> List()
        {
            var modeList = await _modelMasterService.GetAllModelsListAsync();

            if (modeList == null)
            {
                return(View(new ModelsListModel()));
            }

            var model = modeList.Select(d => new ModelsListModel
            {
                Id           = d.Id,
                ModelCode    = d.ModelCode,
                ModelName    = d.ModelName,
                FriendlyName = d.FriendlyName,
                Active       = d.Active,
                Deleted      = d.Deleted,
                DateUpdated  = d.DateUpdated,
                DateCreated  = d.DateCreated
            }).ToList();

            return(View(model));
        }