Exemplo n.º 1
0
        public async Task <IEnumerable <Fuel> > GetAllAsync()
        {
            return(await _fuelRepository.GetAllAsync());;

            //using (var toplivoContext = new ToplivoContext())
            //{
            //    var result = toplivoContext.Fuels.SqlQuery("Select * from dbo.Fuel").ToList();
            //    return await Task.FromResult(result);
            //}
        }
Exemplo n.º 2
0
 public async Task <IEnumerable <Tank> > GetAllAsync()
 {
     return(await _tankRepository.GetAllAsync());
 }