Product's privacy attributes fixes.

This commit is contained in:
Yuee Shiness 2023-04-07 14:05:04 +04:00
parent ff3957a457
commit 74de95f90b

View File

@ -14,16 +14,16 @@ namespace ComputerStoreDatabaseImplement.Models
{ {
public class Product : IProductModel public class Product : IProductModel
{ {
public int ID { get; set; } public int ID { get; private set; }
[Required] [Required]
public string Name { get; set; } = string.Empty; public string Name { get; private set; } = string.Empty;
[Required] [Required]
public double Price { get; set; } public double Price { get; private set; }
[Required] [Required]
public int EmployeeID { get; set; } public int EmployeeID { get; private set; }
[Required] [Required]
public int ConsignmentID { get; private set; } public int ConsignmentID { get; private set; }