initial commit
This commit is contained in:
14
CityInfo.API/Models/PointOfInterestForCreationDto.cs
Normal file
14
CityInfo.API/Models/PointOfInterestForCreationDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace CityInfo.API.Models
|
||||
{
|
||||
public class PointOfInterestForCreationDto
|
||||
{
|
||||
[Required(ErrorMessage = "You should provide a name value.")]
|
||||
[MaxLength(50)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[MaxLength(200)]
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user