-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathCommandDto.cs
More file actions
40 lines (30 loc) · 814 Bytes
/
CommandDto.cs
File metadata and controls
40 lines (30 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System.ComponentModel.DataAnnotations;
namespace Commander.Dtos
{
public class CommandCreateDto
{
[Required]
[MaxLength(250)]
public string HowTo { get; set; }
[Required]
public string Line { get; set; }
[Required]
public string Platform { get; set; }
}
public class CommandReadDto
{
public int Id { get; set; }
public string HowTo { get; set; }
public string Line { get; set; }
}
public class CommandUpdateDto
{
[Required]
[MaxLength(250)]
public string HowTo { get; set; }
[Required]
public string Line { get; set; }
[Required]
public string Platform { get; set; }
}
}