fix
This commit is contained in:
parent
95978ac7d3
commit
b7f07f0859
@ -8,7 +8,7 @@ namespace FurnitureContracts.BindingModels
|
|||||||
public string Login { get; set; } = string.Empty;
|
public string Login { get; set; } = string.Empty;
|
||||||
public string Password { get; set; } = string.Empty;
|
public string Password { get; set; } = string.Empty;
|
||||||
public string Email { 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; }
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,5 +9,6 @@ namespace FurnitureContracts.SearchModels
|
|||||||
public class HeadsetSearchModel
|
public class HeadsetSearchModel
|
||||||
{
|
{
|
||||||
public int? Id { get; set; }
|
public int? Id { get; set; }
|
||||||
|
public string? Size { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,6 @@ namespace FurnitureContracts.ViewModel
|
|||||||
[DisplayName("Логин")]
|
[DisplayName("Логин")]
|
||||||
public string Login { get; set; } = string.Empty;
|
public string Login { get; set; } = string.Empty;
|
||||||
public string Password { 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;
|
public string Email { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,11 +18,11 @@ namespace FurnitureFactoryDataBaseImplements.Implements
|
|||||||
{
|
{
|
||||||
public class HeadsetStorage : IHeadsetStorage
|
public class HeadsetStorage : IHeadsetStorage
|
||||||
{
|
{
|
||||||
int Cost { get; }
|
//int Cost { get; }
|
||||||
string Size { get; }
|
//string Size { get; }
|
||||||
public Dictionary<int, ISalesSalonsModel> HeadsetSalesSalons { get; }
|
//public Dictionary<int, ISalesSalonsModel> HeadsetSalesSalons { get; }
|
||||||
int ManagerId { get; }
|
//int ManagerId { get; }
|
||||||
int HeadsetModuleId { get; }
|
//int HeadsetModuleId { get; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ namespace FurnitureFactoryDataBaseImplements.Implements
|
|||||||
|
|
||||||
public HeadsetViewModel? GetElement(HeadsetSearchModel model)
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,6 @@ namespace FurnitureFactoryDataBaseImplement.Models
|
|||||||
[Required]
|
[Required]
|
||||||
public string UserName { get; set; } = string.Empty;
|
public string UserName { get; set; } = string.Empty;
|
||||||
[Required]
|
[Required]
|
||||||
public string Role { get; set; }
|
|
||||||
[Required]
|
|
||||||
public string Email { get; set; } = string.Empty;
|
public string Email { get; set; } = string.Empty;
|
||||||
[Required]
|
[Required]
|
||||||
public string Login { get; set; } = string.Empty;
|
public string Login { get; set; } = string.Empty;
|
||||||
@ -39,7 +37,6 @@ namespace FurnitureFactoryDataBaseImplement.Models
|
|||||||
{
|
{
|
||||||
Id = model.Id,
|
Id = model.Id,
|
||||||
UserName = model.UserName,
|
UserName = model.UserName,
|
||||||
Role = model.Role,
|
|
||||||
Email = model.Email,
|
Email = model.Email,
|
||||||
Login = model.Login,
|
Login = model.Login,
|
||||||
Password = model.Password,
|
Password = model.Password,
|
||||||
@ -50,7 +47,6 @@ namespace FurnitureFactoryDataBaseImplement.Models
|
|||||||
public void Update(ManagerBindingModel model)
|
public void Update(ManagerBindingModel model)
|
||||||
{
|
{
|
||||||
UserName = model.UserName;
|
UserName = model.UserName;
|
||||||
Role = model.Role;
|
|
||||||
Email = model.Email;
|
Email = model.Email;
|
||||||
Login = model.Login;
|
Login = model.Login;
|
||||||
Password = model.Password;
|
Password = model.Password;
|
||||||
@ -60,7 +56,6 @@ namespace FurnitureFactoryDataBaseImplement.Models
|
|||||||
{
|
{
|
||||||
Id = Id,
|
Id = Id,
|
||||||
UserName = UserName,
|
UserName = UserName,
|
||||||
Role = Role,
|
|
||||||
Email = Email,
|
Email = Email,
|
||||||
Login = Login,
|
Login = Login,
|
||||||
Password = Password
|
Password = Password
|
||||||
|
Loading…
Reference in New Issue
Block a user