Contracts исправил модели! 0.2
This commit is contained in:
parent
2587d43871
commit
9c049cd819
@ -10,11 +10,11 @@ namespace ElectronicsShopContracts.BindingModels
|
||||
public class ClientBindingModel : IClientModel
|
||||
{
|
||||
//ID пользователя
|
||||
public int UserID { get; set; }
|
||||
//ID клиента
|
||||
public int ID { get; set; }
|
||||
public int UserID { get; set; }
|
||||
//ID роли (клиент)
|
||||
public int RoleID { get; set; }
|
||||
|
||||
|
||||
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
|
||||
public string LastName { get; set; } = string.Empty;
|
||||
@ -27,6 +27,5 @@ namespace ElectronicsShopContracts.BindingModels
|
||||
|
||||
public string PhoneNumber { get; set; } = string.Empty;
|
||||
|
||||
public int RoleID { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,6 @@ namespace ElectronicsShopContracts.BindingModels
|
||||
public int UserID { get; set; }
|
||||
//ID роли (сотрудник)
|
||||
public int RoleID { get; set; }
|
||||
//ID сотрудника
|
||||
public int ID { get; set; }
|
||||
|
||||
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
|
@ -12,9 +12,10 @@ namespace ElectronicsShopContracts.BusinessLogicContracts
|
||||
public interface IClientLogic
|
||||
{
|
||||
List<ClientViewModel>? ReadList(ClientSearchModel? model);
|
||||
ClientViewModel? ReadElemet(ClientSearchModel? model);
|
||||
|
||||
bool ClientAdd(ClientBindingModel model);
|
||||
bool ClientUpdate(ClientBindingModel model);
|
||||
bool ClientDelete(ClientBindingModel model);
|
||||
bool Add(ClientBindingModel model);
|
||||
bool Update(ClientBindingModel model);
|
||||
bool Delete(ClientBindingModel model);
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ namespace ElectronicsShopContracts.BusinessLogicContracts
|
||||
public interface IProductLogic
|
||||
{
|
||||
List<ProductViewModel>? ReadList(ProductSearchModel? model);
|
||||
ProductViewModel? ReadProduct(ProductSearchModel? model);
|
||||
ProductViewModel? ReadElement(ProductSearchModel? model);
|
||||
|
||||
bool Create(ProductBindingModel model);
|
||||
bool Update(ProductBindingModel model);
|
||||
|
@ -12,9 +12,10 @@ namespace ElectronicsShopContracts.BusinessLogicContracts
|
||||
public interface ShopAssistentLogic
|
||||
{
|
||||
List<ShopAssistentViewModel>? ReadList(ShopAssistentSearchModel? model);
|
||||
ShopAssistentViewModel? ReadElement(ShopAssistentSearchModel? model);
|
||||
|
||||
bool ClientCreate(ShopAssistentBindingModel model);
|
||||
bool ClientUpdate(ShopAssistentBindingModel model);
|
||||
bool ClientDelete(ShopAssistentBindingModel model);
|
||||
bool Add(ShopAssistentBindingModel model);
|
||||
bool Update(ShopAssistentBindingModel model);
|
||||
bool Delete(ShopAssistentBindingModel model);
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,9 @@ namespace ElectronicsShopContracts.ViewModels
|
||||
|
||||
//ID пользователя
|
||||
public int UserID { get; set; }
|
||||
//ID клиента
|
||||
public int ID { get; set; }
|
||||
//ID роли (клиент)
|
||||
public int RoleID { get; set; }
|
||||
|
||||
|
||||
[DisplayName("Имя")]
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
@ -33,7 +34,5 @@ namespace ElectronicsShopContracts.ViewModels
|
||||
|
||||
[DisplayName("Номер телефона")]
|
||||
public string PhoneNumber { get; set; } = string.Empty;
|
||||
|
||||
public int RoleID { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -14,8 +14,7 @@ namespace ElectronicsShopContracts.ViewModels
|
||||
public int UserID { get; set; }
|
||||
//ID роли (сотрудник)
|
||||
public int RoleID { get; set; }
|
||||
//ID сотрудника
|
||||
public int ID { get; set; }
|
||||
|
||||
|
||||
[DisplayName("Имя")]
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace ElectronicsShopDataModels
|
||||
{
|
||||
public interface IUser : IID
|
||||
public interface IUser
|
||||
{
|
||||
string FirstName { get; }
|
||||
string LastName { get; }
|
||||
|
Loading…
Reference in New Issue
Block a user