private async Task <bool> Update(Flight flight) { try { _context.Update(flight); return(await _context.SaveChangesAsync() > 0); } catch (Exception e) { Console.WriteLine(e); return(false); } }