Dariaaaa6 310a3a8117 ,
2024-12-11 09:33:12 +04:00

30 lines
926 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using ProjectAirline.Entities;
using System;
using System.Collections.Generic;
namespace ProjectAirline.Repositories.Implementations;
public class FlightRepository : IFlightRepository
{
public void CreateFlight(Flight flight)
{
// Реализация создания рейса
}
public void DeleteFlight(int id)
{
// Реализация удаления рейса
}
public Flight ReadFlightById(int flightId)
{
// Реализация чтения рейса по ID
return Flight.CreateOperation(flightId, 0, string.Empty, string.Empty, 0, new List<EmployeeFlight>());
}
public IEnumerable<Flight> ReadFlights(DateTime? dateForm = null, DateTime? dateTo = null, int? flightId = null, int? airplaneId = null)
{
// Реализация чтения рейсов с фильтрацией
return new List<Flight>();
}
}