diff --git a/BlacksmithWorkshop/BlacksmithWorkshopContracts/BindingModels/ComponentBindingModel.cs b/BlacksmithWorkshop/BlacksmithWorkshopContracts/BindingModels/ComponentBindingModel.cs index 6c523d6..5dc4a58 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopContracts/BindingModels/ComponentBindingModel.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopContracts/BindingModels/ComponentBindingModel.cs @@ -7,7 +7,8 @@ using BlacksmithWorkshopDataModels.Models; namespace BlacksmithWorkshopContracts.BindingModels { - internal class ComponentBindingModel : IComponentModel + //реализация сущности "Компонент" + public class ComponentBindingModel : IComponentModel { public int Id { get; set; } diff --git a/BlacksmithWorkshop/BlacksmithWorkshopContracts/BindingModels/OrderBindingModel.cs b/BlacksmithWorkshop/BlacksmithWorkshopContracts/BindingModels/OrderBindingModel.cs index dfea827..641b634 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopContracts/BindingModels/OrderBindingModel.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopContracts/BindingModels/OrderBindingModel.cs @@ -8,7 +8,8 @@ using System.Threading.Tasks; namespace BlacksmithWorkshopContracts.BindingModels { - internal class OrderBindingModel : IOrderModel + //реализация сущности "Заказ" + public class OrderBindingModel : IOrderModel { public int Id { get; set; } diff --git a/BlacksmithWorkshop/BlacksmithWorkshopContracts/BindingModels/ProductBindingModel.cs b/BlacksmithWorkshop/BlacksmithWorkshopContracts/BindingModels/ProductBindingModel.cs index f6a5c9e..f8f5ddd 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopContracts/BindingModels/ProductBindingModel.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopContracts/BindingModels/ProductBindingModel.cs @@ -7,7 +7,8 @@ using System.Threading.Tasks; namespace BlacksmithWorkshopContracts.BindingModels { - internal class ProductBindingModel : IProductModel + //реализация сущности "Продукт" + public class ProductBindingModel : IProductModel { public int Id { get; set; } diff --git a/BlacksmithWorkshop/BlacksmithWorkshopContracts/SearchModels/ComponentSearchModel.cs b/BlacksmithWorkshop/BlacksmithWorkshopContracts/SearchModels/ComponentSearchModel.cs new file mode 100644 index 0000000..c858c99 --- /dev/null +++ b/BlacksmithWorkshop/BlacksmithWorkshopContracts/SearchModels/ComponentSearchModel.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BlacksmithWorkshopContracts.SearchModels +{ + //модель для поиска сущности "Компонент" + public class ComponentSearchModel + { + //для поиска по идентификатору + public int? Id { get; set; } + + //для поиска по названию + public string? ComponentName { get; set; } + } + +} diff --git a/BlacksmithWorkshop/BlacksmithWorkshopContracts/SearchModels/OrderSearchModel.cs b/BlacksmithWorkshop/BlacksmithWorkshopContracts/SearchModels/OrderSearchModel.cs new file mode 100644 index 0000000..7c7f72e --- /dev/null +++ b/BlacksmithWorkshop/BlacksmithWorkshopContracts/SearchModels/OrderSearchModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BlacksmithWorkshopContracts.SearchModels +{ + //для поиска сущности "Заказ" + public class OrderSearchModel + { + //для поиска по идентификатору + public int? Id { get; set; } + } + +} diff --git a/BlacksmithWorkshop/BlacksmithWorkshopContracts/SearchModels/ProductSearchModel.cs b/BlacksmithWorkshop/BlacksmithWorkshopContracts/SearchModels/ProductSearchModel.cs new file mode 100644 index 0000000..647bb18 --- /dev/null +++ b/BlacksmithWorkshop/BlacksmithWorkshopContracts/SearchModels/ProductSearchModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BlacksmithWorkshopContracts.SearchModels +{ + //модель для поиска компонента "Продукт" + public class ProductSearchModel + { + //для поиска по идентификатору + public int? Id { get; set; } + + //для поиска по названию + public string? ProductName { get; set; } + } +}