Modify FeedbackReceiverDto, mark fields with Required

This commit is contained in:
Denis-Cosmin Nutiu 2021-05-29 21:24:41 +03:00
parent 2c07bd385a
commit 9489ec6f33

View file

@ -1,12 +1,16 @@
namespace Retroactiune.Models using System.ComponentModel.DataAnnotations;
namespace Retroactiune.Models
{ {
/// <summary> /// <summary>
/// FeedbackReceiverDto is the DTO for <see cref="FeedbackReceiver"/> /// FeedbackReceiverDto is the DTO for <see cref="FeedbackReceiver"/>
/// </summary> /// </summary>
public class FeedbackReceiverDto public class FeedbackReceiverDto
{ {
[Required]
public string Name { get; set; } public string Name { get; set; }
[Required]
public string Description { get; set; } public string Description { get; set; }
} }
} }