BuisnessLogicsContracts + rename

This commit is contained in:
Николай 2023-04-01 13:23:19 +04:00
parent a927f92a1c
commit d00a938840
9 changed files with 87 additions and 4 deletions

View File

@ -4,7 +4,7 @@ using System.ComponentModel;
namespace HardwareShopContracts.BindingModels
{
public class ClientBindingModel : IClientModel
public class UserBindingModel : IUserModel
{
public int Id { get; set; }

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -3,7 +3,7 @@ using System.ComponentModel;
namespace HardwareShopContracts.SearchModels
{
public class ClientSearchModel
public class UserSearchModel
{
public int? Id { get; set; }

View File

@ -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);
}
}

View File

@ -4,7 +4,7 @@ using System.ComponentModel;
namespace HardwareShopContracts.ViewModels
{
public class ClientViewModel : IClientModel
public class UserViewModel : IUserModel
{
public int Id { get; set; }

View File

@ -3,7 +3,7 @@ using HardwareShopDataModels.Enums;
namespace HardwareShopDataModels.Models
{
public interface IClientModel : IId
public interface IUserModel : IId
{
string Login { get; }