public async Task <IActionResult> Index() { ViewBag.listGasType = await _mTypeRepository.GetAllAsync(); ViewBag.listDistrist = await _districtRepository.GetAllAsync(); List <GasStationData.Models.GasStation> gasStations = await _gasStationRepository.GetAllAsync(); return(View()); }
public async Task <IEnumerable <GasStation> > GetAllAsync() { return(await _gasStationRepository.GetAllAsync()); }