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