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