diff --git a/FurnitureFactory/FurnitureContracts/BindingModels/HeadsetModuleBindingModel.cs b/FurnitureFactory/FurnitureContracts/BindingModels/HeadsetModuleBindingModel.cs index 67fe0d6..55b9bf9 100644 --- a/FurnitureFactory/FurnitureContracts/BindingModels/HeadsetModuleBindingModel.cs +++ b/FurnitureFactory/FurnitureContracts/BindingModels/HeadsetModuleBindingModel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace FurnitureContracts.BindingModels { - internal class HeadsetModuleBindingModel : IHeadsetModuleModel + public class HeadsetModuleBindingModel : IHeadsetModuleModel { public string Style { get; set; } = string.Empty; diff --git a/FurnitureFactory/FurnitureContracts/BindingModels/MaterialBindingModel.cs b/FurnitureFactory/FurnitureContracts/BindingModels/MaterialBindingModel.cs index 9ee9759..1e3e2c0 100644 --- a/FurnitureFactory/FurnitureContracts/BindingModels/MaterialBindingModel.cs +++ b/FurnitureFactory/FurnitureContracts/BindingModels/MaterialBindingModel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace FurnitureContracts.BindingModels { - internal class MaterialBindingModel : IMaterialModel + public class MaterialBindingModel : IMaterialModel { public string Name { get; set; } = string.Empty; diff --git a/FurnitureFactory/FurnitureContracts/BindingModels/UserBindingModel.cs b/FurnitureFactory/FurnitureContracts/BindingModels/UserBindingModel.cs index 9aacac6..14c44bc 100644 --- a/FurnitureFactory/FurnitureContracts/BindingModels/UserBindingModel.cs +++ b/FurnitureFactory/FurnitureContracts/BindingModels/UserBindingModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using FurnitureFactoryDataModels.Models; namespace FurnitureContracts.BindingModels { - internal class UserBindingModel : IUserModel + public class UserBindingModel : IUserModel { public int Login { get; set; } diff --git a/FurnitureFactory/FurnitureContracts/SearchModels/HeadsetModuleSearchModel.cs b/FurnitureFactory/FurnitureContracts/SearchModels/HeadsetModuleSearchModel.cs index 3455e8b..fbefb85 100644 --- a/FurnitureFactory/FurnitureContracts/SearchModels/HeadsetModuleSearchModel.cs +++ b/FurnitureFactory/FurnitureContracts/SearchModels/HeadsetModuleSearchModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureContracts.SearchModels { - internal class HeadsetModuleSearchModel + public class HeadsetModuleSearchModel { public string? Name { get; set; } public int? Id { get; set; } diff --git a/FurnitureFactory/FurnitureContracts/SearchModels/UserSearchModel.cs b/FurnitureFactory/FurnitureContracts/SearchModels/UserSearchModel.cs index b57875a..7b9128f 100644 --- a/FurnitureFactory/FurnitureContracts/SearchModels/UserSearchModel.cs +++ b/FurnitureFactory/FurnitureContracts/SearchModels/UserSearchModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace FurnitureContracts.SearchModels { - internal class UserSearchModel + public class UserSearchModel { public string? Name { get; set; } public int? Id { get; set; } diff --git a/FurnitureFactory/FurnitureContracts/StoragesContracts/IFurnitureStorage.cs b/FurnitureFactory/FurnitureContracts/StoragesContracts/IFurnitureStorage.cs new file mode 100644 index 0000000..ffbe072 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/StoragesContracts/IFurnitureStorage.cs @@ -0,0 +1,26 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.StoragesContracts +{ + public interface IFurnitureStorage + { + List GetFullList(); + + List GetFilteredList(FurnitureSearchModel model); + + FurnitureViewModel? GetElement(FurnitureSearchModel model); + + FurnitureViewModel? Insert(FurnitureBindingModel model); + + FurnitureViewModel? Update(FurnitureBindingModel model); + + FurnitureViewModel? Delete(FurnitureBindingModel model); + } +} diff --git a/FurnitureFactory/FurnitureContracts/StoragesContracts/IHeadsetModuleStorage.cs b/FurnitureFactory/FurnitureContracts/StoragesContracts/IHeadsetModuleStorage.cs new file mode 100644 index 0000000..3b7deef --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/StoragesContracts/IHeadsetModuleStorage.cs @@ -0,0 +1,26 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.StoragesContracts +{ + public interface IHeadsetModuleStorage + { + List GetFullList(); + + List GetFilteredList(HeadsetModuleSearchModel model); + + HeadsetModuleViewModel? GetElement(HeadsetModuleSearchModel model); + + HeadsetModuleViewModel? Insert(HeadsetModuleBindingModel model); + + HeadsetModuleViewModel? Update(HeadsetModuleBindingModel model); + + HeadsetModuleViewModel? Delete(HeadsetModuleBindingModel model); + } +} diff --git a/FurnitureFactory/FurnitureContracts/StoragesContracts/IMaterialStorage.cs b/FurnitureFactory/FurnitureContracts/StoragesContracts/IMaterialStorage.cs new file mode 100644 index 0000000..2721239 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/StoragesContracts/IMaterialStorage.cs @@ -0,0 +1,26 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.StoragesContracts +{ + public interface IMaterialStorage + { + List GetFullList(); + + List GetFilteredList(MaterialSearchModel model); + + MaterialViewModel? GetElement(MaterialSearchModel model); + + MaterialViewModel? Insert(MaterialBindingModel model); + + MaterialViewModel? Update(MaterialBindingModel model); + + MaterialViewModel? Delete(MaterialBindingModel model); + } +} diff --git a/FurnitureFactory/FurnitureContracts/StoragesContracts/IUserStorage.cs b/FurnitureFactory/FurnitureContracts/StoragesContracts/IUserStorage.cs new file mode 100644 index 0000000..0e43e91 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/StoragesContracts/IUserStorage.cs @@ -0,0 +1,21 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; + +namespace FurnitureContracts.StoragesContracts +{ + public interface IUserStorage + { + List GetFullList(); + + List GetFilteredList(UserSearchModel model); + + UserViewModel? GetElement(UserSearchModel model); + + UserViewModel? Insert(UserBindingModel model); + + UserViewModel? Update(UserBindingModel model); + + UserViewModel? Delete(UserBindingModel model); + } +} diff --git a/FurnitureFactory/FurnitureContracts/ViewModel/UserViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/UserViewModel.cs index aa3ac44..6b2d180 100644 --- a/FurnitureFactory/FurnitureContracts/ViewModel/UserViewModel.cs +++ b/FurnitureFactory/FurnitureContracts/ViewModel/UserViewModel.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace FurnitureContracts.ViewModel { - internal class UserViewModel : IUserModel + public class UserViewModel : IUserModel { [DisplayName("Логин")] public int Login { get; set; }