BuisnessLogicsContracts + rename
This commit is contained in:
parent
a927f92a1c
commit
d00a938840
@ -4,7 +4,7 @@ using System.ComponentModel;
|
||||
|
||||
namespace HardwareShopContracts.BindingModels
|
||||
{
|
||||
public class ClientBindingModel : IClientModel
|
||||
public class UserBindingModel : IUserModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
@ -0,0 +1,15 @@
|
||||
using HardwareShopContracts.BindingModels;
|
||||
using HardwareShopContracts.SearchModels;
|
||||
using HardwareShopContracts.ViewModels;
|
||||
|
||||
namespace HardwareShopContracts.BusinessLogicsContracts
|
||||
{
|
||||
public interface IBuildLogic
|
||||
{
|
||||
List<BuildViewModel>? ReadList(BuildSearchModel? model);
|
||||
BuildViewModel? ReadElement(BuildSearchModel model);
|
||||
bool Create(BuildBindingModel model);
|
||||
bool Update(BuildBindingModel model);
|
||||
bool Delete(BuildBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using HardwareShopContracts.BindingModels;
|
||||
using HardwareShopContracts.SearchModels;
|
||||
using HardwareShopContracts.ViewModels;
|
||||
|
||||
namespace HardwareShopContracts.BusinessLogicsContracts
|
||||
{
|
||||
public interface ICommentLogic
|
||||
{
|
||||
List<CommentViewModel>? ReadList(CommentSearchModel? model);
|
||||
CommentViewModel? ReadElement(CommentSearchModel model);
|
||||
bool Create(CommentBindingModel model);
|
||||
bool Update(CommentBindingModel model);
|
||||
bool Delete(CommentBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
using HardwareShopContracts.BindingModels;
|
||||
using HardwareShopContracts.SearchModels;
|
||||
using HardwareShopContracts.ViewModels;
|
||||
|
||||
namespace HardwareShopContracts.BusinessLogicsContracts
|
||||
{
|
||||
public interface IPurchaseLogic
|
||||
{
|
||||
List<PurchaseViewModel>? ReadList(PurchaseSearchModel? model);
|
||||
bool CreatePurchase(PurchaseBindingModel model);
|
||||
bool DeliveryPurchase(PurchaseBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
using HardwareShopContracts.BindingModels;
|
||||
using HardwareShopContracts.SearchModels;
|
||||
using HardwareShopContracts.ViewModels;
|
||||
|
||||
namespace HardwareShopContracts.BusinessLogicsContracts
|
||||
{
|
||||
public interface IUserLogic
|
||||
{
|
||||
List<UserViewModel>? ReadList(UserSearchModel? model);
|
||||
|
||||
UserViewModel? ReadElement(UserSearchModel model);
|
||||
|
||||
bool Create(UserBindingModel model);
|
||||
|
||||
bool Update(UserBindingModel model);
|
||||
|
||||
bool Delete(UserBindingModel model);
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@ using System.ComponentModel;
|
||||
|
||||
namespace HardwareShopContracts.SearchModels
|
||||
{
|
||||
public class ClientSearchModel
|
||||
public class UserSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
@ -0,0 +1,21 @@
|
||||
using HardwareShopContracts.BindingModels;
|
||||
using HardwareShopContracts.SearchModels;
|
||||
using HardwareShopContracts.ViewModels;
|
||||
|
||||
namespace HardwareShopContracts.StoragesContracts
|
||||
{
|
||||
public interface IUsertorage
|
||||
{
|
||||
List<UserViewModel> GetFullList();
|
||||
|
||||
List<UserViewModel> GetFilteredList(UserSearchModel model);
|
||||
|
||||
UserViewModel? GetElement(UserSearchModel model);
|
||||
|
||||
UserViewModel? Insert(UserBindingModel model);
|
||||
|
||||
UserViewModel? Update(UserBindingModel model);
|
||||
|
||||
UserViewModel? Delete(UserBindingModel model);
|
||||
}
|
||||
}
|
@ -4,7 +4,7 @@ using System.ComponentModel;
|
||||
|
||||
namespace HardwareShopContracts.ViewModels
|
||||
{
|
||||
public class ClientViewModel : IClientModel
|
||||
public class UserViewModel : IUserModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
@ -3,7 +3,7 @@ using HardwareShopDataModels.Enums;
|
||||
|
||||
namespace HardwareShopDataModels.Models
|
||||
{
|
||||
public interface IClientModel : IId
|
||||
public interface IUserModel : IId
|
||||
{
|
||||
string Login { get; }
|
||||
|
Loading…
Reference in New Issue
Block a user