This commit is contained in:
FLARJ 2023-04-07 16:43:56 +04:00
parent 95978ac7d3
commit b7f07f0859
5 changed files with 8 additions and 13 deletions

View File

@ -8,7 +8,7 @@ namespace FurnitureContracts.BindingModels
public string Login { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string Role { get; set; } = string.Empty;
//public string Role { get; set; } = string.Empty;
public int Id { get; set; }
}
}

View File

@ -9,5 +9,6 @@ namespace FurnitureContracts.SearchModels
public class HeadsetSearchModel
{
public int? Id { get; set; }
public string? Size { get; set; }
}
}

View File

@ -12,7 +12,6 @@ namespace FurnitureContracts.ViewModel
[DisplayName("Логин")]
public string Login { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public string Role { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
}
}

View File

@ -18,11 +18,11 @@ namespace FurnitureFactoryDataBaseImplements.Implements
{
public class HeadsetStorage : IHeadsetStorage
{
int Cost { get; }
string Size { get; }
public Dictionary<int, ISalesSalonsModel> HeadsetSalesSalons { get; }
int ManagerId { get; }
int HeadsetModuleId { get; }
//int Cost { get; }
//string Size { get; }
//public Dictionary<int, ISalesSalonsModel> HeadsetSalesSalons { get; }
//int ManagerId { get; }
//int HeadsetModuleId { get; }
@ -72,7 +72,7 @@ namespace FurnitureFactoryDataBaseImplements.Implements
public HeadsetViewModel? GetElement(HeadsetSearchModel model)
{
if ((string.IsNullOrEmpty(model.Title) && !model.Id.HasValue) || !model.ManagerId.HasValue)
if ((string.IsNullOrEmpty(model.Size) && !model.Id.HasValue) || !model.ManagerId.HasValue)
{
return null;
}

View File

@ -17,8 +17,6 @@ namespace FurnitureFactoryDataBaseImplement.Models
[Required]
public string UserName { get; set; } = string.Empty;
[Required]
public string Role { get; set; }
[Required]
public string Email { get; set; } = string.Empty;
[Required]
public string Login { get; set; } = string.Empty;
@ -39,7 +37,6 @@ namespace FurnitureFactoryDataBaseImplement.Models
{
Id = model.Id,
UserName = model.UserName,
Role = model.Role,
Email = model.Email,
Login = model.Login,
Password = model.Password,
@ -50,7 +47,6 @@ namespace FurnitureFactoryDataBaseImplement.Models
public void Update(ManagerBindingModel model)
{
UserName = model.UserName;
Role = model.Role;
Email = model.Email;
Login = model.Login;
Password = model.Password;
@ -60,7 +56,6 @@ namespace FurnitureFactoryDataBaseImplement.Models
{
Id = Id,
UserName = UserName,
Role = Role,
Email = Email,
Login = Login,
Password = Password