22 lines
415 B
C#
22 lines
415 B
C#
using ProjectAirline.Entities;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ProjectAirline.Repositories;
|
|
|
|
public interface IFlightRepository
|
|
{
|
|
IEnumerable<Flight> ReadFlights();
|
|
|
|
Flight ReadFlightById(int id);
|
|
|
|
void CreateFlight(Flight flight);
|
|
|
|
void UpdateFlight(Flight flight);
|
|
|
|
void DeleteFlight(int id);
|
|
}
|