Product's privacy attributes fixes.
This commit is contained in:
parent
ff3957a457
commit
74de95f90b
@ -14,16 +14,16 @@ namespace ComputerStoreDatabaseImplement.Models
|
||||
{
|
||||
public class Product : IProductModel
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int ID { get; private set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Name { get; private set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public double Price { get; set; }
|
||||
public double Price { get; private set; }
|
||||
|
||||
[Required]
|
||||
public int EmployeeID { get; set; }
|
||||
public int EmployeeID { get; private set; }
|
||||
|
||||
[Required]
|
||||
public int ConsignmentID { get; private set; }
|
||||
|
Loading…
Reference in New Issue
Block a user