Storage
This commit is contained in:
parent
253c86b527
commit
c7afd08471
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
@ -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; }
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user