This commit is contained in:
Ismailov_Rovshan 2023-04-06 00:02:51 +04:00
parent 253c86b527
commit c7afd08471
10 changed files with 105 additions and 6 deletions

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace FurnitureContracts.BindingModels namespace FurnitureContracts.BindingModels
{ {
internal class HeadsetModuleBindingModel : IHeadsetModuleModel public class HeadsetModuleBindingModel : IHeadsetModuleModel
{ {
public string Style { get; set; } = string.Empty; public string Style { get; set; } = string.Empty;

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace FurnitureContracts.BindingModels namespace FurnitureContracts.BindingModels
{ {
internal class MaterialBindingModel : IMaterialModel public class MaterialBindingModel : IMaterialModel
{ {
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
using FurnitureFactoryDataModels.Models; using FurnitureFactoryDataModels.Models;
namespace FurnitureContracts.BindingModels namespace FurnitureContracts.BindingModels
{ {
internal class UserBindingModel : IUserModel public class UserBindingModel : IUserModel
{ {
public int Login { get; set; } public int Login { get; set; }

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace FurnitureContracts.SearchModels namespace FurnitureContracts.SearchModels
{ {
internal class HeadsetModuleSearchModel public class HeadsetModuleSearchModel
{ {
public string? Name { get; set; } public string? Name { get; set; }
public int? Id { get; set; } public int? Id { get; set; }

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace FurnitureContracts.SearchModels namespace FurnitureContracts.SearchModels
{ {
internal class UserSearchModel public class UserSearchModel
{ {
public string? Name { get; set; } public string? Name { get; set; }
public int? Id { get; set; } public int? Id { get; set; }

View File

@ -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<FurnitureViewModel> GetFullList();
List<FurnitureViewModel> GetFilteredList(FurnitureSearchModel model);
FurnitureViewModel? GetElement(FurnitureSearchModel model);
FurnitureViewModel? Insert(FurnitureBindingModel model);
FurnitureViewModel? Update(FurnitureBindingModel model);
FurnitureViewModel? Delete(FurnitureBindingModel model);
}
}

View File

@ -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<HeadsetModuleViewModel> GetFullList();
List<HeadsetModuleViewModel> GetFilteredList(HeadsetModuleSearchModel model);
HeadsetModuleViewModel? GetElement(HeadsetModuleSearchModel model);
HeadsetModuleViewModel? Insert(HeadsetModuleBindingModel model);
HeadsetModuleViewModel? Update(HeadsetModuleBindingModel model);
HeadsetModuleViewModel? Delete(HeadsetModuleBindingModel model);
}
}

View File

@ -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<MaterialViewModel> GetFullList();
List<MaterialViewModel> GetFilteredList(MaterialSearchModel model);
MaterialViewModel? GetElement(MaterialSearchModel model);
MaterialViewModel? Insert(MaterialBindingModel model);
MaterialViewModel? Update(MaterialBindingModel model);
MaterialViewModel? Delete(MaterialBindingModel model);
}
}

View File

@ -0,0 +1,21 @@
using FurnitureContracts.BindingModels;
using FurnitureContracts.SearchModels;
using FurnitureContracts.ViewModel;
namespace FurnitureContracts.StoragesContracts
{
public interface IUserStorage
{
List<UserViewModel> GetFullList();
List<UserViewModel> GetFilteredList(UserSearchModel model);
UserViewModel? GetElement(UserSearchModel model);
UserViewModel? Insert(UserBindingModel model);
UserViewModel? Update(UserBindingModel model);
UserViewModel? Delete(UserBindingModel model);
}
}

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace FurnitureContracts.ViewModel namespace FurnitureContracts.ViewModel
{ {
internal class UserViewModel : IUserModel public class UserViewModel : IUserModel
{ {
[DisplayName("Логин")] [DisplayName("Логин")]
public int Login { get; set; } public int Login { get; set; }