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); //} }
public async Task <IEnumerable <Tank> > GetAllAsync() { return(await _tankRepository.GetAllAsync()); }