diff --git a/FurnitureFactory/FurnitureContracts/SearchModels/HeadsetSearchModel.cs b/FurnitureFactory/FurnitureContracts/SearchModels/HeadsetSearchModel.cs index 4785b2d..ed5445d 100644 --- a/FurnitureFactory/FurnitureContracts/SearchModels/HeadsetSearchModel.cs +++ b/FurnitureFactory/FurnitureContracts/SearchModels/HeadsetSearchModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureContracts.SearchModels { - internal class HeadsetSearchModel + public class HeadsetSearchModel { public int? Id { get; set; } } diff --git a/FurnitureFactory/FurnitureContracts/SearchModels/OrderSearchModel.cs b/FurnitureFactory/FurnitureContracts/SearchModels/OrderSearchModel.cs index 0027a4b..d8715a4 100644 --- a/FurnitureFactory/FurnitureContracts/SearchModels/OrderSearchModel.cs +++ b/FurnitureFactory/FurnitureContracts/SearchModels/OrderSearchModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureContracts.SearchModels { - internal class OrderSearchModel + public class OrderSearchModel { public int? Id { get; set; } } diff --git a/FurnitureFactory/FurnitureContracts/SearchModels/RoleSearchModel.cs b/FurnitureFactory/FurnitureContracts/SearchModels/RoleSearchModel.cs index cb26be3..2280a4d 100644 --- a/FurnitureFactory/FurnitureContracts/SearchModels/RoleSearchModel.cs +++ b/FurnitureFactory/FurnitureContracts/SearchModels/RoleSearchModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureContracts.SearchModels { - internal class RoleSearchModel + public class RoleSearchModel { public string? Name { get; set; } public int? Id { get; set; } diff --git a/FurnitureFactory/FurnitureContracts/SearchModels/SalesSalonsSearchModel.cs b/FurnitureFactory/FurnitureContracts/SearchModels/SalesSalonsSearchModel.cs index 3543986..0a10c65 100644 --- a/FurnitureFactory/FurnitureContracts/SearchModels/SalesSalonsSearchModel.cs +++ b/FurnitureFactory/FurnitureContracts/SearchModels/SalesSalonsSearchModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureContracts.SearchModels { - internal class SalesSalonsSearchModel + public class SalesSalonsSearchModel { public string? Name { get; set; } public int? Id { get; set; } diff --git a/FurnitureFactory/FurnitureContracts/ViewModel/HeadsetViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/HeadsetViewModel.cs new file mode 100644 index 0000000..428c441 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/ViewModel/HeadsetViewModel.cs @@ -0,0 +1,21 @@ +using FurnitureFactoryDataModels.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.ViewModel +{ + public class HeadsetViewModel + { + public int Cost { get; set; } + + [DisplayName("Размер")] + public string Size { get; set; } = string.Empty; + public int Id { get; set; } + public Dictionary HeadsetModuleId { get; } + + } +} diff --git a/FurnitureFactory/FurnitureContracts/ViewModel/OrdersViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/OrdersViewModel.cs new file mode 100644 index 0000000..d6effc5 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/ViewModel/OrdersViewModel.cs @@ -0,0 +1,22 @@ +using FurnitureFactoryDataModels.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.ViewModel +{ + public class OrdersViewModel + { + [DisplayName("Дата заказа")] + public DateTime Date { get; set; } + + [DisplayName("Статус")] + 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/ViewModel/RoleViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/RoleViewModel.cs new file mode 100644 index 0000000..e768e60 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/ViewModel/RoleViewModel.cs @@ -0,0 +1,12 @@ +using FurnitureFactoryDataModels.Models; +using System.ComponentModel; + +namespace FurnitureContracts.ViewModel +{ + public class RoleViewModel + { + [DisplayName("Название роли")] + public string Name { get; set; } = string.Empty; + public int Id { get; set; } + } +} diff --git a/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs new file mode 100644 index 0000000..9f45f70 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs @@ -0,0 +1,15 @@ +using FurnitureFactoryDataModels.Models; +using System.ComponentModel; + +namespace FurnitureContracts.ViewModel +{ + public class SalesSalonsViewModel + { + [DisplayName("Название")] + public string Name { get; set; } = string.Empty; + [DisplayName("Адресс")] + public string Address { get; set; } = string.Empty; + public Dictionary OrdersId { get; set; } + public int Id { get; set; } + } +}