12 lines
No EOL
322 B
C#
12 lines
No EOL
322 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Wonky.Entity.DTO;
|
|
|
|
public class ShortMessageModel
|
|
{
|
|
[Required] [MaxLength(11)] public string From { get; set; } = "";
|
|
|
|
[Required] [MaxLength(1000)] public string To { get; set; } = "";
|
|
|
|
[Required] [MaxLength(100)] public string Body { get; set; } = "";
|
|
} |