Skip to content

Commit e7b7453

Browse files
address comments
1 parent 2895f37 commit e7b7453

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

NorthwindCRUD/Models/Dtos/CategoryDto.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ namespace NorthwindCRUD.Models.Dtos
55
{
66
public class CategoryDto : ICategory
77
{
8-
[Range(1, int.MaxValue, ErrorMessage = "CategoryId must be greater than 0.")]
98
public int CategoryId { get; set; }
109

1110
[StringLength(500, ErrorMessage = "Description cannot exceed 500 characters.")]

NorthwindCRUD/Models/Dtos/ProductDto.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ namespace NorthwindCRUD.Models.Dtos
55
{
66
public class ProductDto : IProduct
77
{
8-
[Required(ErrorMessage = "ProductId is required.")]
98
public int ProductId { get; set; }
109

1110
[Range(1, int.MaxValue, ErrorMessage = "SupplierId must be a valid supplier ID.")]

0 commit comments

Comments
 (0)