Guarantor: Shifting from Employee ID in view model to Employee username.
This commit is contained in:
parent
74de95f90b
commit
ee3f2ff447
@ -18,9 +18,11 @@ namespace ComputerStoreContracts.ViewModels
|
||||
[DisplayName("PC's price")]
|
||||
public double Price { get; set; }
|
||||
|
||||
[DisplayName("Employee ID")]
|
||||
public int EmployeeID { get; set; }
|
||||
|
||||
[DisplayName("Employee's username")]
|
||||
public string EmployeeUsername { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Request ID")]
|
||||
public int RequestID { get; set; }
|
||||
public Dictionary<int, (IComponentModel, int)> PCComponents { get; set; } = new();
|
||||
|
@ -18,9 +18,11 @@ namespace ComputerStoreContracts.ViewModels
|
||||
[DisplayName("Product's price")]
|
||||
public double Price { get; set; }
|
||||
|
||||
[DisplayName("Employee ID")]
|
||||
public int EmployeeID { get; set; }
|
||||
|
||||
[DisplayName("Employee's username")]
|
||||
public string EmployeeUsername { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Consignment ID")]
|
||||
public int ConsignmentID { get; set; }
|
||||
|
||||
|
@ -77,6 +77,7 @@ namespace ComputerStoreDatabaseImplement.Models
|
||||
Name = Name,
|
||||
Price = Price,
|
||||
EmployeeID = EmployeeID,
|
||||
EmployeeUsername = Employee.Username,
|
||||
RequestID = RequestID,
|
||||
PCComponents = PCComponents
|
||||
};
|
||||
|
@ -76,6 +76,7 @@ namespace ComputerStoreDatabaseImplement.Models
|
||||
Name = Name,
|
||||
Price = Price,
|
||||
EmployeeID = EmployeeID,
|
||||
EmployeeUsername = Employee.Username,
|
||||
ConsignmentID = ConsignmentID,
|
||||
ProductComponents = ProductComponents
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user