Files
ShopSolution-backend/Webshop.Application/DTOs/Reviews/CreateReviewDto.cs
Tizian.Breuch 5b84ccc575 review
2025-09-08 11:24:10 +02:00

23 lines
530 B
C#

// src/Webshop.Application/DTOs/Reviews/CreateReviewDto.cs
using System;
using System.ComponentModel.DataAnnotations;
namespace Webshop.Application.DTOs.Reviews
{
public class CreateReviewDto
{
[Required]
public Guid ProductId { get; set; }
[Required]
[Range(1, 5)]
public int Rating { get; set; }
[Required]
[MaxLength(255)]
public string Title { get; set; } = string.Empty;
[MaxLength(2000)]
public string? Comment { get; set; }
}
}