/// <summary>
        /// Index
        /// </summary>
        /// <returns></returns>
        public IActionResult Index()
        {
            var result = _carDataService.GetOwnerNamesByBrandAsync().Result;
            var model  = _mapper.Map <IList <HomeViewModel> >(result);

            return(View(model));
        }
Exemple #2
0
        public async Task <IList <CarDataDto> > Get()
        {
            var result = await _carDataService.GetOwnerNamesByBrandAsync();

            return(result);
        }