diff --git a/ProjectAirline/Entities/Flight.cs b/ProjectAirline/Entities/Flight.cs
index a0ce739..4382a44 100644
--- a/ProjectAirline/Entities/Flight.cs
+++ b/ProjectAirline/Entities/Flight.cs
@@ -12,19 +12,19 @@ public class Flight
public DateTime DatetimeDeparture { get; private set; }
- public DateTime ArrivalTime { get; private set; }
+ public DateTime DateTimeArrival { get; private set; }
public string ArrivalLocation { get; private set; } = string.Empty;
public int TicketPrice { get; private set; }
- public static Flight CreateFlight(int id, DateTime dateTimeDeparture, DateTime arrivalTime, string arrivalLocation, int ticketPrice)
+ public static Flight CreateFlight(int id, DateTime dateTimeDeparture, DateTime dateTimeArrival, string arrivalLocation, int ticketPrice)
{
return new Flight
{
Id = id,
DatetimeDeparture = dateTimeDeparture,
- ArrivalTime = arrivalTime,
+ DateTimeArrival = dateTimeArrival,
ArrivalLocation = arrivalLocation,
TicketPrice = ticketPrice
};
diff --git a/ProjectAirline/Entities/Ticket.cs b/ProjectAirline/Entities/Ticket.cs
index 9e71050..90275ca 100644
--- a/ProjectAirline/Entities/Ticket.cs
+++ b/ProjectAirline/Entities/Ticket.cs
@@ -12,4 +12,13 @@ public class Ticket
public DateTime DateBuy { get; private set; }
+ public static Ticket CreateTicket(int id)
+ {
+ return new Ticket
+ {
+ Id = id,
+ DateBuy = DateTime.Now,
+ };
+ }
+
}
diff --git a/ProjectAirline/FormAirline.Designer.cs b/ProjectAirline/FormAirline.Designer.cs
index 7e0c2ec..2f26f61 100644
--- a/ProjectAirline/FormAirline.Designer.cs
+++ b/ProjectAirline/FormAirline.Designer.cs
@@ -28,12 +28,105 @@
///
private void InitializeComponent()
{
- this.components = new System.ComponentModel.Container();
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(800, 450);
- this.Text = "Form1";
+ menuStrip = new MenuStrip();
+ справочникиToolStripMenuItem = new ToolStripMenuItem();
+ полетToolStripMenuItem = new ToolStripMenuItem();
+ операцииToolStripMenuItem = new ToolStripMenuItem();
+ отчетыToolStripMenuItem = new ToolStripMenuItem();
+ пассажирыToolStripMenuItem = new ToolStripMenuItem();
+ самолетыToolStripMenuItem = new ToolStripMenuItem();
+ билетыToolStripMenuItem = new ToolStripMenuItem();
+ подготовительныеРаботыToolStripMenuItem = new ToolStripMenuItem();
+ menuStrip.SuspendLayout();
+ SuspendLayout();
+ //
+ // menuStrip
+ //
+ menuStrip.Items.AddRange(new ToolStripItem[] { справочникиToolStripMenuItem, операцииToolStripMenuItem, отчетыToolStripMenuItem });
+ menuStrip.Location = new Point(0, 0);
+ menuStrip.Name = "menuStrip";
+ menuStrip.Size = new Size(784, 24);
+ menuStrip.TabIndex = 0;
+ menuStrip.Text = "menuStrip";
+ //
+ // справочникиToolStripMenuItem
+ //
+ справочникиToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { полетToolStripMenuItem, пассажирыToolStripMenuItem, самолетыToolStripMenuItem, билетыToolStripMenuItem });
+ справочникиToolStripMenuItem.Name = "справочникиToolStripMenuItem";
+ справочникиToolStripMenuItem.Size = new Size(94, 20);
+ справочникиToolStripMenuItem.Text = "Справочники";
+ //
+ // полетToolStripMenuItem
+ //
+ полетToolStripMenuItem.Name = "полетToolStripMenuItem";
+ полетToolStripMenuItem.Size = new Size(180, 22);
+ полетToolStripMenuItem.Text = "Полеты";
+ //
+ // операцииToolStripMenuItem
+ //
+ операцииToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { подготовительныеРаботыToolStripMenuItem });
+ операцииToolStripMenuItem.Name = "операцииToolStripMenuItem";
+ операцииToolStripMenuItem.Size = new Size(75, 20);
+ операцииToolStripMenuItem.Text = "Операции";
+ //
+ // отчетыToolStripMenuItem
+ //
+ отчетыToolStripMenuItem.Name = "отчетыToolStripMenuItem";
+ отчетыToolStripMenuItem.Size = new Size(60, 20);
+ отчетыToolStripMenuItem.Text = "Отчеты";
+ //
+ // пассажирыToolStripMenuItem
+ //
+ пассажирыToolStripMenuItem.Name = "пассажирыToolStripMenuItem";
+ пассажирыToolStripMenuItem.Size = new Size(180, 22);
+ пассажирыToolStripMenuItem.Text = "Пассажиры";
+ //
+ // самолетыToolStripMenuItem
+ //
+ самолетыToolStripMenuItem.Name = "самолетыToolStripMenuItem";
+ самолетыToolStripMenuItem.Size = new Size(180, 22);
+ самолетыToolStripMenuItem.Text = "Самолеты";
+ //
+ // билетыToolStripMenuItem
+ //
+ билетыToolStripMenuItem.Name = "билетыToolStripMenuItem";
+ билетыToolStripMenuItem.Size = new Size(180, 22);
+ билетыToolStripMenuItem.Text = "Билеты";
+ //
+ // подготовительныеРаботыToolStripMenuItem
+ //
+ подготовительныеРаботыToolStripMenuItem.Name = "подготовительныеРаботыToolStripMenuItem";
+ подготовительныеРаботыToolStripMenuItem.Size = new Size(223, 22);
+ подготовительныеРаботыToolStripMenuItem.Text = "Подготовительные работы";
+ //
+ // FormAirline
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ BackgroundImage = Properties.Resources.scale_1200;
+ BackgroundImageLayout = ImageLayout.Stretch;
+ ClientSize = new Size(784, 411);
+ Controls.Add(menuStrip);
+ MainMenuStrip = menuStrip;
+ Name = "FormAirline";
+ StartPosition = FormStartPosition.CenterScreen;
+ Text = "Авиакомпания";
+ menuStrip.ResumeLayout(false);
+ menuStrip.PerformLayout();
+ ResumeLayout(false);
+ PerformLayout();
}
#endregion
+
+ private MenuStrip menuStrip;
+ private ToolStripMenuItem справочникиToolStripMenuItem;
+ private ToolStripMenuItem полетToolStripMenuItem;
+ private ToolStripMenuItem операцииToolStripMenuItem;
+ private ToolStripMenuItem отчетыToolStripMenuItem;
+ private ToolStripMenuItem пассажирыToolStripMenuItem;
+ private ToolStripMenuItem самолетыToolStripMenuItem;
+ private ToolStripMenuItem билетыToolStripMenuItem;
+ private ToolStripMenuItem подготовительныеРаботыToolStripMenuItem;
}
}
diff --git a/ProjectAirline/FormAirline.cs b/ProjectAirline/FormAirline.cs
index 9d85215..24f2168 100644
--- a/ProjectAirline/FormAirline.cs
+++ b/ProjectAirline/FormAirline.cs
@@ -6,5 +6,6 @@ namespace ProjectAirline
{
InitializeComponent();
}
+
}
}
diff --git a/ProjectAirline/FormAirline.resx b/ProjectAirline/FormAirline.resx
index 1af7de1..6c82d08 100644
--- a/ProjectAirline/FormAirline.resx
+++ b/ProjectAirline/FormAirline.resx
@@ -1,17 +1,17 @@
-
@@ -117,4 +117,7 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 17, 17
+
\ No newline at end of file
diff --git a/ProjectAirline/Forms/FormFlight.Designer.cs b/ProjectAirline/Forms/FormFlight.Designer.cs
new file mode 100644
index 0000000..bfefc71
--- /dev/null
+++ b/ProjectAirline/Forms/FormFlight.Designer.cs
@@ -0,0 +1,142 @@
+namespace ProjectAirline.Forms
+{
+ partial class FormFlight
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ label1 = new Label();
+ label2 = new Label();
+ label3 = new Label();
+ textBox1 = new TextBox();
+ label4 = new Label();
+ numericUpDown1 = new NumericUpDown();
+ buttonFlightSave = new Button();
+ buttonFlightCancel = new Button();
+ ((System.ComponentModel.ISupportInitialize)numericUpDown1).BeginInit();
+ SuspendLayout();
+ //
+ // label1
+ //
+ label1.AutoSize = true;
+ label1.Location = new Point(32, 35);
+ label1.Name = "label1";
+ label1.Size = new Size(74, 15);
+ label1.TabIndex = 0;
+ label1.Text = "Дата вылета";
+ //
+ // label2
+ //
+ label2.AutoSize = true;
+ label2.Location = new Point(32, 71);
+ label2.Name = "label2";
+ label2.Size = new Size(90, 15);
+ label2.TabIndex = 1;
+ label2.Text = "Дата прибытия";
+ //
+ // label3
+ //
+ label3.AutoSize = true;
+ label3.Location = new Point(32, 109);
+ label3.Name = "label3";
+ label3.Size = new Size(100, 15);
+ label3.TabIndex = 2;
+ label3.Text = "Место прибытия";
+ //
+ // textBox1
+ //
+ textBox1.Location = new Point(145, 106);
+ textBox1.Name = "textBox1";
+ textBox1.Size = new Size(100, 23);
+ textBox1.TabIndex = 3;
+ //
+ // label4
+ //
+ label4.AutoSize = true;
+ label4.Location = new Point(32, 148);
+ label4.Name = "label4";
+ label4.Size = new Size(76, 15);
+ label4.TabIndex = 4;
+ label4.Text = "Цена билета";
+ //
+ // numericUpDown1
+ //
+ numericUpDown1.Location = new Point(145, 146);
+ numericUpDown1.Name = "numericUpDown1";
+ numericUpDown1.Size = new Size(100, 23);
+ numericUpDown1.TabIndex = 5;
+ //
+ // buttonFlightSave
+ //
+ buttonFlightSave.Location = new Point(30, 223);
+ buttonFlightSave.Name = "buttonFlightSave";
+ buttonFlightSave.Size = new Size(75, 23);
+ buttonFlightSave.TabIndex = 6;
+ buttonFlightSave.Text = "Сохранить";
+ buttonFlightSave.UseVisualStyleBackColor = true;
+ //
+ // buttonFlightCancel
+ //
+ buttonFlightCancel.Location = new Point(152, 223);
+ buttonFlightCancel.Name = "buttonFlightCancel";
+ buttonFlightCancel.Size = new Size(75, 23);
+ buttonFlightCancel.TabIndex = 7;
+ buttonFlightCancel.Text = "Отмена";
+ buttonFlightCancel.UseVisualStyleBackColor = true;
+ //
+ // FormFlight
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(273, 282);
+ Controls.Add(buttonFlightCancel);
+ Controls.Add(buttonFlightSave);
+ Controls.Add(numericUpDown1);
+ Controls.Add(label4);
+ Controls.Add(textBox1);
+ Controls.Add(label3);
+ Controls.Add(label2);
+ Controls.Add(label1);
+ Name = "FormFlight";
+ StartPosition = FormStartPosition.CenterParent;
+ Text = "Полет";
+ ((System.ComponentModel.ISupportInitialize)numericUpDown1).EndInit();
+ ResumeLayout(false);
+ PerformLayout();
+ }
+
+ #endregion
+
+ private Label label1;
+ private Label label2;
+ private Label label3;
+ private TextBox textBox1;
+ private Label label4;
+ private NumericUpDown numericUpDown1;
+ private Button buttonFlightSave;
+ private Button buttonFlightCancel;
+ }
+}
\ No newline at end of file
diff --git a/ProjectAirline/Forms/FormFlight.cs b/ProjectAirline/Forms/FormFlight.cs
new file mode 100644
index 0000000..d201249
--- /dev/null
+++ b/ProjectAirline/Forms/FormFlight.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace ProjectAirline.Forms
+{
+ public partial class FormFlight : Form
+ {
+ public FormFlight()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/ProjectAirline/Forms/FormFlight.resx b/ProjectAirline/Forms/FormFlight.resx
new file mode 100644
index 0000000..af32865
--- /dev/null
+++ b/ProjectAirline/Forms/FormFlight.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/ProjectAirline/Program.cs b/ProjectAirline/Program.cs
index ae61fc9..a01a0fd 100644
--- a/ProjectAirline/Program.cs
+++ b/ProjectAirline/Program.cs
@@ -1,3 +1,7 @@
+using ProjectAirline.Repositories;
+using ProjectAirline.Repositories.Implementations;
+using Unity;
+
namespace ProjectAirline
{
internal static class Program
@@ -11,7 +15,20 @@ namespace ProjectAirline
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
- Application.Run(new FormAirline());
+ Application.Run(CreateContainer().Resolve());
+ }
+
+ private static IUnityContainer CreateContainer()
+ {
+ var container = new UnityContainer();
+
+ container.RegisterType();
+ container.RegisterType();
+ container.RegisterType();
+ container.RegisterType();
+ container.RegisterType();
+
+ return container;
}
}
}
\ No newline at end of file
diff --git a/ProjectAirline/ProjectAirline.csproj b/ProjectAirline/ProjectAirline.csproj
index 663fdb8..accbdf0 100644
--- a/ProjectAirline/ProjectAirline.csproj
+++ b/ProjectAirline/ProjectAirline.csproj
@@ -8,4 +8,23 @@
enable
+
+
+
+
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/ProjectAirline/Properties/Resources.Designer.cs b/ProjectAirline/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..e6fce52
--- /dev/null
+++ b/ProjectAirline/Properties/Resources.Designer.cs
@@ -0,0 +1,73 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace ProjectAirline.Properties {
+ using System;
+
+
+ ///
+ /// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д.
+ ///
+ // Этот класс создан автоматически классом StronglyTypedResourceBuilder
+ // с помощью такого средства, как ResGen или Visual Studio.
+ // Чтобы добавить или удалить член, измените файл .ResX и снова запустите ResGen
+ // с параметром /str или перестройте свой проект VS.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ProjectAirline.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Перезаписывает свойство CurrentUICulture текущего потока для всех
+ /// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap scale_1200 {
+ get {
+ object obj = ResourceManager.GetObject("scale_1200", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/ProjectAirline/Properties/Resources.resx b/ProjectAirline/Properties/Resources.resx
new file mode 100644
index 0000000..190f64f
--- /dev/null
+++ b/ProjectAirline/Properties/Resources.resx
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+ ..\Resources\scale_1200.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/ProjectAirline/Repositories/IFlightRepository.cs b/ProjectAirline/Repositories/IFlightRepository.cs
new file mode 100644
index 0000000..bbc7ea1
--- /dev/null
+++ b/ProjectAirline/Repositories/IFlightRepository.cs
@@ -0,0 +1,21 @@
+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 ReadFlights();
+
+ Flight ReadFlightById(int id);
+
+ void CreateFlight(Flight flight);
+
+ void UpdateFlight(Flight flight);
+
+ void DeleteFlight(int id);
+}
diff --git a/ProjectAirline/Repositories/IPassangerRepository.cs b/ProjectAirline/Repositories/IPassangerRepository.cs
new file mode 100644
index 0000000..96eac9b
--- /dev/null
+++ b/ProjectAirline/Repositories/IPassangerRepository.cs
@@ -0,0 +1,21 @@
+using ProjectAirline.Entities;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectAirline.Repositories;
+
+public interface IPassangerRepository
+{
+ IEnumerable ReadPassangers();
+
+ Passanger ReadPassangerById(int id);
+
+ void CreatePassanger(Passanger passanger);
+
+ void UpdatePassanger(Passanger passanger);
+
+ void DeletePassanger(int id);
+}
diff --git a/ProjectAirline/Repositories/IPlaneRepository.cs b/ProjectAirline/Repositories/IPlaneRepository.cs
new file mode 100644
index 0000000..2840250
--- /dev/null
+++ b/ProjectAirline/Repositories/IPlaneRepository.cs
@@ -0,0 +1,21 @@
+using ProjectAirline.Entities;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectAirline.Repositories;
+
+public interface IPlaneRepository
+{
+ IEnumerable ReadPlanes();
+
+ Plane ReadPlaneById(int id);
+
+ void CreatePlane(Plane plane);
+
+ void UpdatePlane(Plane plane);
+
+ void DeletePlane(int id);
+}
diff --git a/ProjectAirline/Repositories/IPreparatoryWorkRepository.cs b/ProjectAirline/Repositories/IPreparatoryWorkRepository.cs
new file mode 100644
index 0000000..97b0113
--- /dev/null
+++ b/ProjectAirline/Repositories/IPreparatoryWorkRepository.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectAirline.Repositories;
+
+public interface IPreparatoryWorkRepository
+{
+}
diff --git a/ProjectAirline/Repositories/ITicketRepository.cs b/ProjectAirline/Repositories/ITicketRepository.cs
new file mode 100644
index 0000000..bcb6ef4
--- /dev/null
+++ b/ProjectAirline/Repositories/ITicketRepository.cs
@@ -0,0 +1,21 @@
+using ProjectAirline.Entities;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectAirline.Repositories;
+
+public interface ITicketRepository
+{
+ IEnumerable ReadTickets();
+
+ Ticket ReadTicketById(int id);
+
+ void CreateTicket(Ticket ticket);
+
+ void UpdateTicket(Ticket ticket);
+
+ void DeleteTicket(int id);
+}
diff --git a/ProjectAirline/Repositories/Implementations/FlightRepository.cs b/ProjectAirline/Repositories/Implementations/FlightRepository.cs
new file mode 100644
index 0000000..6e65879
--- /dev/null
+++ b/ProjectAirline/Repositories/Implementations/FlightRepository.cs
@@ -0,0 +1,33 @@
+using ProjectAirline.Entities;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectAirline.Repositories.Implementations;
+
+public class FlightRepository : IFlightRepository
+{
+ public void CreateFlight(Flight flight)
+ {
+ }
+
+ public void DeleteFlight(int id)
+ {
+ }
+
+ public Flight ReadFlightById(int id)
+ {
+ return Flight.CreateFlight(0, DateTime.Now, DateTime.Now, string.Empty, 0);
+ }
+
+ public IEnumerable ReadFlights()
+ {
+ return [];
+ }
+
+ public void UpdateFlight(Flight flight)
+ {
+ }
+}
diff --git a/ProjectAirline/Repositories/Implementations/PassangerRepository.cs b/ProjectAirline/Repositories/Implementations/PassangerRepository.cs
new file mode 100644
index 0000000..5a3cd05
--- /dev/null
+++ b/ProjectAirline/Repositories/Implementations/PassangerRepository.cs
@@ -0,0 +1,33 @@
+using ProjectAirline.Entities;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectAirline.Repositories.Implementations;
+
+public class PassangerRepository : IPassangerRepository
+{
+ public void CreatePassanger(Passanger passanger)
+ {
+ }
+
+ public void DeletePassanger(int id)
+ {
+ }
+
+ public Passanger ReadPassangerById(int id)
+ {
+ return Passanger.CreatePassanger(0, string.Empty);
+ }
+
+ public IEnumerable ReadPassangers()
+ {
+ return [];
+ }
+
+ public void UpdatePassanger(Passanger passanger)
+ {
+ }
+}
diff --git a/ProjectAirline/Repositories/Implementations/PlaneRepository.cs b/ProjectAirline/Repositories/Implementations/PlaneRepository.cs
new file mode 100644
index 0000000..6dcac8f
--- /dev/null
+++ b/ProjectAirline/Repositories/Implementations/PlaneRepository.cs
@@ -0,0 +1,32 @@
+using ProjectAirline.Entities;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectAirline.Repositories.Implementations;
+public class PlaneRepository : IPlaneRepository
+{
+ public void CreatePlane(Plane plane)
+ {
+ }
+
+ public void DeletePlane(int id)
+ {
+ }
+
+ public Plane ReadPlaneById(int id)
+ {
+ return Plane.CreatePlane(0, string.Empty, 0);
+ }
+
+ public IEnumerable ReadPlanes()
+ {
+ return [];
+ }
+
+ public void UpdatePlane(Plane plane)
+ {
+ }
+}
diff --git a/ProjectAirline/Repositories/Implementations/PreparatoryWorkRepository.cs b/ProjectAirline/Repositories/Implementations/PreparatoryWorkRepository.cs
new file mode 100644
index 0000000..33926eb
--- /dev/null
+++ b/ProjectAirline/Repositories/Implementations/PreparatoryWorkRepository.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectAirline.Repositories.Implementations;
+
+public class PreparatoryWorkRepository : IPreparatoryWorkRepository
+{
+
+}
diff --git a/ProjectAirline/Repositories/Implementations/TicketRepository.cs b/ProjectAirline/Repositories/Implementations/TicketRepository.cs
new file mode 100644
index 0000000..9e89239
--- /dev/null
+++ b/ProjectAirline/Repositories/Implementations/TicketRepository.cs
@@ -0,0 +1,33 @@
+using ProjectAirline.Entities;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectAirline.Repositories.Implementations;
+
+public class TicketRepository : ITicketRepository
+{
+ public void CreateTicket(Ticket ticket)
+ {
+ }
+
+ public void DeleteTicket(int id)
+ {
+ }
+
+ public Ticket ReadTicketById(int id)
+ {
+ return Ticket.CreateTicket(0);
+ }
+
+ public IEnumerable ReadTickets()
+ {
+ return [];
+ }
+
+ public void UpdateTicket(Ticket ticket)
+ {
+ }
+}
diff --git a/ProjectAirline/Resources/scale_1200.jpg b/ProjectAirline/Resources/scale_1200.jpg
new file mode 100644
index 0000000..2c13fe6
Binary files /dev/null and b/ProjectAirline/Resources/scale_1200.jpg differ