/// <summary> /// Index /// </summary> /// <returns></returns> public IActionResult Index() { var result = _carDataService.GetOwnerNamesByBrandAsync().Result; var model = _mapper.Map <IList <HomeViewModel> >(result); return(View(model)); }
public async Task <IList <CarDataDto> > Get() { var result = await _carDataService.GetOwnerNamesByBrandAsync(); return(result); }