blob: d45543fb9a4ed4d3985feacfea615e39f84daf5d (
plain)
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
|
using System.ComponentModel.DataAnnotations;
namespace Timeline.Models.Http
{
public class UserPutRequest
{
[Required]
public string Password { get; set; }
[Required]
public bool? Administrator { get; set; }
}
public class UserPatchRequest
{
public string Password { get; set; }
public bool? Administrator { get; set; }
}
public class ChangePasswordRequest
{
[Required]
public string OldPassword { get; set; }
[Required]
public string NewPassword { get; set; }
}
}
|