diff --git a/ComputerStoreDatabaseImplement/Models/Product.cs b/ComputerStoreDatabaseImplement/Models/Product.cs index 68db6a6..d5a6267 100644 --- a/ComputerStoreDatabaseImplement/Models/Product.cs +++ b/ComputerStoreDatabaseImplement/Models/Product.cs @@ -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; }