public IEnumerable <Truck> Get() { return(_service.GetAllTrucks()); }
public async Task <Trucks[]> GetAllTrucks() { return(await _truckService.GetAllTrucks()); }
public async Task <IActionResult> GetAllTrucks() { var data = await _truckService.GetAllTrucks(); return(ApplicationResult(data, data.StatusCode)); }