Example #1
0
 public object GetMakes()
 {
     return(new
     {
         isKosher = true,
         makes = VehicleSpecService.GetMakes().Select(make => Mapper.Map <Dto.Make>(make))
     });
 }
Example #2
0
        public ActionResult Index()
        {
            var refiSourceIds = JsonConvert.SerializeObject(
                LeadDataService.RefinanceSources
                .Select(s => new { id = s.SourceId }).ToList());

            var model = new Index
            {
                RedirectUrl   = RedirectUrl,
                RedirectTtlms = RedirectTtlms,
                NoPlacementCopyTextDuplicate = NoPlacementCopyTextDuplicate,
                PageMeta = PageMeta,
                PurchaseModePageSequence  = PurchaseModePageSequence,
                RefinanceModePageSequence = RefinanceModePageSequence,
                NoQualifyModePageSequence = NoQualifyModePageSequence,
                RefinanceSourceIds        = refiSourceIds,
                Makes = JsonConvert.SerializeObject(VehicleSpecService
                                                    .GetMakes().Where(m => m.IsActive).Select(m => new { value = m.Id, label = m.Name }).ToList())
            };

            return(View("Index", model));
        }