This commit is contained in:
Николай 2023-04-01 21:39:41 +04:00
parent 74416a8aab
commit cef5209f67
6 changed files with 9 additions and 9 deletions

View File

@ -12,8 +12,8 @@ namespace HardwareShopContracts.ViewModels
[DisplayName("Название компонента")] [DisplayName("Название компонента")]
public string BuildName { get; set; } = string.Empty; public string BuildName { get; set; } = string.Empty;
[DisplayName("Клиент")] [DisplayName("Логин работника")]
public string UserEmail { get; set; } = string.Empty; public string UserLogin { get; set; } = string.Empty;
public int UserId { get; set; } public int UserId { get; set; }

View File

@ -17,7 +17,7 @@ namespace HardwareShopContracts.ViewModels
public int UserId { get; set; } public int UserId { get; set; }
[DisplayName("Email клиента")] [DisplayName("Логин работника")]
public string UserEmail { get; set; } = string.Empty; public string UserLogin { get; set; } = string.Empty;
} }
} }

View File

@ -18,8 +18,8 @@ namespace HardwareShopContracts.ViewModels
public int UserId { get; set; } public int UserId { get; set; }
[DisplayName("Email клиента")] [DisplayName("Логин работника")]
public string UserEmail { get; set; } = string.Empty; public string UserLogin { get; set; } = string.Empty;
public Dictionary<int, (IBuildModel, int)>? PurchaseBuilds { get; set; } public Dictionary<int, (IBuildModel, int)>? PurchaseBuilds { get; set; }

View File

@ -75,7 +75,7 @@ namespace HardwareShopDatabaseImplement.Models.Worker
Id = Id, Id = Id,
BuildName = BuildName, BuildName = BuildName,
Price = Price, Price = Price,
UserEmail = User.Email, UserLogin = User.Login,
UserId = UserId, UserId = UserId,
BuildComponents = BuildComponents BuildComponents = BuildComponents
}; };

View File

@ -52,7 +52,7 @@ namespace HardwareShopDatabaseImplement.Models.Worker
BuildId = BuildId, BuildId = BuildId,
BuildName = Build.BuildName, BuildName = Build.BuildName,
UserId = UserId, UserId = UserId,
UserEmail = User.Email, UserLogin = User.Login,
}; };
} }
} }

View File

@ -96,7 +96,7 @@ namespace HardwareShopDatabaseImplement.Models.Worker
PurchaseStatus = PurchaseStatus, PurchaseStatus = PurchaseStatus,
DatePurchase = DatePurchase, DatePurchase = DatePurchase,
UserId = UserId, UserId = UserId,
UserEmail = User.Email, UserLogin = User.Login,
PurchaseBuilds = PurchaseBuilds, PurchaseBuilds = PurchaseBuilds,
PurchaseGoods = PurchaseGoods PurchaseGoods = PurchaseGoods
}; };