28 lines
580 B
C#
28 lines
580 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
|
|
{
|
|
Flight ReadFlightById(int id);
|
|
|
|
IEnumerable<Flight> ReadFlights(DateTime? dateFrom = null, DateTime? dateTo = null, int? flightId = null);
|
|
|
|
void CreateFlight(Flight flight);
|
|
|
|
//IEnumerable<Flight> ReadFlights();
|
|
|
|
|
|
|
|
//void CreateFlight(Flight flight);
|
|
|
|
void UpdateFlight(Flight flight);
|
|
|
|
void DeleteFlight(int id);
|
|
}
|