From 9489ec6f33982493db0e801e71d59af6a90a24fc Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Sat, 29 May 2021 21:24:41 +0300 Subject: [PATCH] Modify FeedbackReceiverDto, mark fields with Required --- Retroactiune.WebAPI/Models/FeedbackReceiverDto.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Retroactiune.WebAPI/Models/FeedbackReceiverDto.cs b/Retroactiune.WebAPI/Models/FeedbackReceiverDto.cs index 3190eb9..264e3a6 100644 --- a/Retroactiune.WebAPI/Models/FeedbackReceiverDto.cs +++ b/Retroactiune.WebAPI/Models/FeedbackReceiverDto.cs @@ -1,12 +1,16 @@ -namespace Retroactiune.Models +using System.ComponentModel.DataAnnotations; + +namespace Retroactiune.Models { /// /// FeedbackReceiverDto is the DTO for /// public class FeedbackReceiverDto { + [Required] public string Name { get; set; } + [Required] public string Description { get; set; } } } \ No newline at end of file