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("Название компонента")]
public string BuildName { get; set; } = string.Empty;
[DisplayName("Клиент")]
public string UserEmail { get; set; } = string.Empty;
[DisplayName("Логин работника")]
public string UserLogin { get; set; } = string.Empty;
public int UserId { get; set; }

View File

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

View File

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

View File

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

View File

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

View File

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