diff --git a/BeautySaloon/BeautySaloon.sln b/BeautySaloon/BeautySaloon.sln index 366ad95..346cccf 100644 --- a/BeautySaloon/BeautySaloon.sln +++ b/BeautySaloon/BeautySaloon.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 17.3.32929.385 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeautySaloonView", "BeautySaloonView\BeautySaloonView.csproj", "{4098AFA1-025D-4259-A4FD-4546A533DE60}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeautySaloonDataModels", "BeautySaloonDataModels\BeautySaloonDataModels.csproj", "{A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {4098AFA1-025D-4259-A4FD-4546A533DE60}.Debug|Any CPU.Build.0 = Debug|Any CPU {4098AFA1-025D-4259-A4FD-4546A533DE60}.Release|Any CPU.ActiveCfg = Release|Any CPU {4098AFA1-025D-4259-A4FD-4546A533DE60}.Release|Any CPU.Build.0 = Release|Any CPU + {A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/BeautySaloon/BeautySaloonDataModels/BeautySaloonDataModels.csproj b/BeautySaloon/BeautySaloonDataModels/BeautySaloonDataModels.csproj new file mode 100644 index 0000000..27ac386 --- /dev/null +++ b/BeautySaloon/BeautySaloonDataModels/BeautySaloonDataModels.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/BeautySaloon/BeautySaloonDataModels/Models/IClientModel.cs b/BeautySaloon/BeautySaloonDataModels/Models/IClientModel.cs new file mode 100644 index 0000000..f7385c4 --- /dev/null +++ b/BeautySaloon/BeautySaloonDataModels/Models/IClientModel.cs @@ -0,0 +1,12 @@ +namespace BeautySaloonDataModels.Models +{ + public interface IClientModel + { + int Id { get; } + string Name { get; } + string Surname { get; } + string Patronymic { get; } + string Phone { get; } + List Orders { get; } + } +} diff --git a/BeautySaloon/BeautySaloonDataModels/Models/IEmployeeModel.cs b/BeautySaloon/BeautySaloonDataModels/Models/IEmployeeModel.cs new file mode 100644 index 0000000..2893bb5 --- /dev/null +++ b/BeautySaloon/BeautySaloonDataModels/Models/IEmployeeModel.cs @@ -0,0 +1,12 @@ +namespace BeautySaloonDataModels.Models +{ + public interface IEmployeeModel + { + int Id { get; } + string Name { get; } + string Surname { get; } + string Patronymic { get; } + string Phone { get; } + int PositionId { get; } + } +} diff --git a/BeautySaloon/BeautySaloonDataModels/Models/IOrderModel.cs b/BeautySaloon/BeautySaloonDataModels/Models/IOrderModel.cs new file mode 100644 index 0000000..a4ec9a0 --- /dev/null +++ b/BeautySaloon/BeautySaloonDataModels/Models/IOrderModel.cs @@ -0,0 +1,11 @@ +namespace BeautySaloonDataModels.Models +{ + public interface IOrderModel + { + int Id { get; } + DateTime Date { get; } + double Sum { get; } + int ClientId { get; } + Dictionary OrderServices { get; } + } +} diff --git a/BeautySaloon/BeautySaloonDataModels/Models/IPositionModel.cs b/BeautySaloon/BeautySaloonDataModels/Models/IPositionModel.cs new file mode 100644 index 0000000..b712b80 --- /dev/null +++ b/BeautySaloon/BeautySaloonDataModels/Models/IPositionModel.cs @@ -0,0 +1,8 @@ +namespace BeautySaloonDataModels.Models +{ + public interface IPositionModel + { + int Id { get; } + string Name { get; } + } +} diff --git a/BeautySaloon/BeautySaloonDataModels/Models/IServiceModel.cs b/BeautySaloon/BeautySaloonDataModels/Models/IServiceModel.cs new file mode 100644 index 0000000..54801f8 --- /dev/null +++ b/BeautySaloon/BeautySaloonDataModels/Models/IServiceModel.cs @@ -0,0 +1,9 @@ +namespace BeautySaloonDataModels.Models +{ + public interface IServiceModel + { + int Id { get; } + string Name { get; } + double Price { get; } + } +}