Exemple #1
0
        public IActionResult GetAll()
        {
            var ordersCollection = _planeService.GetAll();

            if (ordersCollection == null || !ordersCollection.Any())
            {
                return(BadRequest("Collection is empty"));
            }
            return(Ok(ordersCollection));
        }
Exemple #2
0
        public async Task <ActionResult> Get()
        {
            var results = await _planeService.GetAll();

            return(Ok(results));
        }
Exemple #3
0
        public IActionResult Get()
        {
            var entites = _planeService.GetAll();

            return(Json(entites));
        }
 public async Task <IActionResult> GetAll()
 {
     return(Json(await _service.GetAll()));
 }