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/OrdersBindingModel.cs b/FurnitureFactory/FurnitureContracts/BindingModels/OrdersBindingModel.cs new file mode 100644 index 0000000..925f3ae --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/BindingModels/OrdersBindingModel.cs @@ -0,0 +1,13 @@ +using FurnitureFactoryDataModels.Models; + +namespace FurnitureContracts.BindingModels +{ + public class OrdersBindingModel : IOrdersModel + { + public DateTime Date { get; set; } = DateTime.Now; + public string Status { get; set; } = string.Empty; + public int Id { get; set; } + public Dictionary FurnitureId { get; set; } + public Dictionary HeadsetId { 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 4a3382c..8e9cf04 100644 --- a/FurnitureFactory/FurnitureContracts/FurnitureContracts.csproj +++ b/FurnitureFactory/FurnitureContracts/FurnitureContracts.csproj @@ -10,8 +10,4 @@ - - - - diff --git a/FurnitureFactory/FurnitureFactoryDataModels/Models/IFurnitureModel.cs b/FurnitureFactory/FurnitureFactoryDataModels/Models/IFurnitureModel.cs index 3990245..581c336 100644 --- a/FurnitureFactory/FurnitureFactoryDataModels/Models/IFurnitureModel.cs +++ b/FurnitureFactory/FurnitureFactoryDataModels/Models/IFurnitureModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureFactoryDataModels.Models { - internal interface IFurnitureModel : IId + public interface IFurnitureModel : IId { string Name { get;} string Color { get; } diff --git a/FurnitureFactory/FurnitureFactoryDataModels/Models/IHeadsetModel.cs b/FurnitureFactory/FurnitureFactoryDataModels/Models/IHeadsetModel.cs index 05f7aef..c2c291f 100644 --- a/FurnitureFactory/FurnitureFactoryDataModels/Models/IHeadsetModel.cs +++ b/FurnitureFactory/FurnitureFactoryDataModels/Models/IHeadsetModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureFactoryDataModels.Models { - internal interface IHeadsetModel : IId + public interface IHeadsetModel : IId { int Cost { get;} string Size { get; } diff --git a/FurnitureFactory/FurnitureFactoryDataModels/Models/IHeadsetModuleModel.cs b/FurnitureFactory/FurnitureFactoryDataModels/Models/IHeadsetModuleModel.cs index 73fc80f..bce3924 100644 --- a/FurnitureFactory/FurnitureFactoryDataModels/Models/IHeadsetModuleModel.cs +++ b/FurnitureFactory/FurnitureFactoryDataModels/Models/IHeadsetModuleModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureFactoryDataModels.Models { - internal interface IHeadsetModuleModel : IId + public interface IHeadsetModuleModel : IId { string Style { get;} int Cost { get;} diff --git a/FurnitureFactory/FurnitureFactoryDataModels/Models/IMaterialModel.cs b/FurnitureFactory/FurnitureFactoryDataModels/Models/IMaterialModel.cs index 702f4a7..1327645 100644 --- a/FurnitureFactory/FurnitureFactoryDataModels/Models/IMaterialModel.cs +++ b/FurnitureFactory/FurnitureFactoryDataModels/Models/IMaterialModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureFactoryDataModels.Models { - internal interface IMaterialModel : IId + public interface IMaterialModel : IId { string Name { get; } string Cost { get; } diff --git a/FurnitureFactory/FurnitureFactoryDataModels/Models/IOrdersModel.cs b/FurnitureFactory/FurnitureFactoryDataModels/Models/IOrdersModel.cs index 83eb877..51baf6e 100644 --- a/FurnitureFactory/FurnitureFactoryDataModels/Models/IOrdersModel.cs +++ b/FurnitureFactory/FurnitureFactoryDataModels/Models/IOrdersModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureFactoryDataModels.Models { - internal interface IOrdersModel : IId + public interface IOrdersModel : IId { DateTime Date { get; } string Status { get; } diff --git a/FurnitureFactory/FurnitureFactoryDataModels/Models/IRoleModel.cs b/FurnitureFactory/FurnitureFactoryDataModels/Models/IRoleModel.cs index 87ddccc..9f95834 100644 --- a/FurnitureFactory/FurnitureFactoryDataModels/Models/IRoleModel.cs +++ b/FurnitureFactory/FurnitureFactoryDataModels/Models/IRoleModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureFactoryDataModels.Models { - internal interface IRoleModel : IId + public interface IRoleModel : IId { string Name { get; } } diff --git a/FurnitureFactory/FurnitureFactoryDataModels/Models/ISalesSalonsModel.cs b/FurnitureFactory/FurnitureFactoryDataModels/Models/ISalesSalonsModel.cs index c1ada21..8d96804 100644 --- a/FurnitureFactory/FurnitureFactoryDataModels/Models/ISalesSalonsModel.cs +++ b/FurnitureFactory/FurnitureFactoryDataModels/Models/ISalesSalonsModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureFactoryDataModels.Models { - internal interface ISalesSalonsModel : IId + public interface ISalesSalonsModel : IId { string Name { get; } string Address { get; }