//[Authorize(Roles = "AvioAdmin")] public async Task <object> Delete(long id) { AirlineCompany company = await _service.GetCompany(id.ToString()); try { await _service.DeleteCompany(id); } catch (Exception ex) { Console.WriteLine($"ERROR with deleting company. -> {ex.Message}"); } return(Ok(new { message = "Avio company deleted", company = company })); }