From 2daa654cb641c79f0edd9e804f81c03e5a1e39ac Mon Sep 17 00:00:00 2001 From: FLARJ <122087628+FLARJ@users.noreply.github.com> Date: Wed, 5 Apr 2023 21:52:54 +0400 Subject: [PATCH] Binding Models --- .../BindingModels/HeadsetBindingModel.cs | 12 ++++++++++++ .../BindingModels/RoleBindingModel.cs | 10 ++++++++++ .../BindingModels/SalesSalonsBindingModel.cs | 12 ++++++++++++ .../FurnitureContracts/FurnitureContracts.csproj | 4 ---- 4 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 FurnitureFactory/FurnitureContracts/BindingModels/HeadsetBindingModel.cs create mode 100644 FurnitureFactory/FurnitureContracts/BindingModels/RoleBindingModel.cs create mode 100644 FurnitureFactory/FurnitureContracts/BindingModels/SalesSalonsBindingModel.cs diff --git a/FurnitureFactory/FurnitureContracts/BindingModels/HeadsetBindingModel.cs b/FurnitureFactory/FurnitureContracts/BindingModels/HeadsetBindingModel.cs new file mode 100644 index 0000000..36878f1 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/BindingModels/HeadsetBindingModel.cs @@ -0,0 +1,12 @@ +using FurnitureFactoryDataModels.Models; + +namespace FurnitureContracts.BindingModels +{ + public class HeadsetBindingModel : IHeadsetModel + { + public string Size { get; set; } = string.Empty; + public int Cost { get; set; } + public int Id { get; set; } + public Dictionary HeadsetModuleId { get; set; } + } +} diff --git a/FurnitureFactory/FurnitureContracts/BindingModels/RoleBindingModel.cs b/FurnitureFactory/FurnitureContracts/BindingModels/RoleBindingModel.cs new file mode 100644 index 0000000..e7459a7 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/BindingModels/RoleBindingModel.cs @@ -0,0 +1,10 @@ +using FurnitureFactoryDataModels.Models; + +namespace FurnitureContracts.BindingModels +{ + public class RoleBindingModel : IRoleModel + { + public string Name { get; set; } = string.Empty; + public int Id { get; set; } + } +} diff --git a/FurnitureFactory/FurnitureContracts/BindingModels/SalesSalonsBindingModel.cs b/FurnitureFactory/FurnitureContracts/BindingModels/SalesSalonsBindingModel.cs new file mode 100644 index 0000000..b1daf8f --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/BindingModels/SalesSalonsBindingModel.cs @@ -0,0 +1,12 @@ +using FurnitureFactoryDataModels.Models; + +namespace FurnitureContracts.BindingModels +{ + public class SalesSalonsBindingModel : ISalesSalonsModel + { + public string Name { get; set; } = string.Empty; + public string Address { get; set; } = string.Empty; + public Dictionary OrdersId { get; set; } + public int Id { get; set; } + } +} diff --git a/FurnitureFactory/FurnitureContracts/FurnitureContracts.csproj b/FurnitureFactory/FurnitureContracts/FurnitureContracts.csproj index 7ef3296..8e9cf04 100644 --- a/FurnitureFactory/FurnitureContracts/FurnitureContracts.csproj +++ b/FurnitureFactory/FurnitureContracts/FurnitureContracts.csproj @@ -6,10 +6,6 @@ enable - - - -