public async Task <ActionResult> GetAll() { var res = new Res(); res.Clients = await _clientService.GetAll(0, 0); res.Aircrafts = await _aircraftService.GetAll(0, 0); res.Flights = await _flightService.GetAll(0, 0); res.Orders = await _orderService.GetAll(0, 0); return(Ok(res)); }
public IActionResult Get() { return(Ok(service.GetAll())); }
public AircraftControllerTests() { service = A.Fake <IAircraftService>(); aircraftsController = new AircraftsController(service); A.CallTo(() => service.GetAll()).Returns(new List <AircraftDto>()); }
public async Task <IActionResult> Get() { return(Ok(await service.GetAll())); }
public async Task <ActionResult> GetAll() { var aircrafts = await _aircraftService.GetAll(0, 0); return(Ok(aircrafts)); }