Пример #1
0
        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));
        }
Пример #2
0
 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()));
 }
Пример #5
0
        public async Task <ActionResult> GetAll()
        {
            var aircrafts = await _aircraftService.GetAll(0, 0);

            return(Ok(aircrafts));
        }