public IEnumerable <Truck> Get()
 {
     return(_service.GetAllTrucks());
 }
 public async Task <Trucks[]> GetAllTrucks()
 {
     return(await _truckService.GetAllTrucks());
 }
예제 #3
0
        public async Task <IActionResult> GetAllTrucks()
        {
            var data = await _truckService.GetAllTrucks();

            return(ApplicationResult(data, data.StatusCode));
        }