Example #1
0
        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());
        }
Example #2
0
 public async Task <IEnumerable <GasStation> > GetAllAsync()
 {
     return(await _gasStationRepository.GetAllAsync());
 }