From 74de95f90b007e5911cbe5aa1f3dbbdd0c3742f6 Mon Sep 17 00:00:00 2001 From: Yuee Shiness Date: Fri, 7 Apr 2023 14:05:04 +0400 Subject: [PATCH] Product's privacy attributes fixes. --- ComputerStoreDatabaseImplement/Models/Product.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }