Add contact controller
This commit is contained in:
15
Dtos/CreateContactDto.cs
Normal file
15
Dtos/CreateContactDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace weddingapi.Dtos
|
||||
{
|
||||
public record CreateContactDto
|
||||
{
|
||||
[Required]
|
||||
public string From { get; init; }
|
||||
[Required]
|
||||
public string Email { get; init; }
|
||||
[Required]
|
||||
public string Message { get; init; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user