Skip to content

Commit 7036295

Browse files
committed
CSharpier cleanup
1 parent a67ec40 commit 7036295

3 files changed

Lines changed: 20 additions & 13 deletions

File tree

‎DTOs/TaskItemDto.cs‎

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,20 @@
22

33
namespace Taskify.DTOs;
44

5-
public record TaskItemDto {
6-
[JsonProperty("title")]
7-
public string Title {get; set;}
8-
[JsonProperty("description")]
9-
public string Description {get; set;}
10-
[JsonProperty("dueDate")]
11-
public DateTime? DueDate {get; set;}
12-
[JsonProperty("status")]
13-
public TaskStatus Status {get; set;}
14-
15-
public int? UserId {get; set;}
16-
public User? User {get; set;}
17-
}
5+
public record TaskItemDto
6+
{
7+
[JsonProperty("title")]
8+
public string Title { get; set; }
9+
10+
[JsonProperty("description")]
11+
public string Description { get; set; }
12+
13+
[JsonProperty("dueDate")]
14+
public DateTime? DueDate { get; set; }
15+
16+
[JsonProperty("status")]
17+
public TaskStatus Status { get; set; }
18+
19+
public int? UserId { get; set; }
20+
public User? User { get; set; }
21+
}

‎DTOs/UserLoginDto.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ public record UserLoginDto
44
{
55
[JsonProperty("username")]
66
public string Username { get; set; }
7+
78
[JsonProperty("password")]
89
public string Password { get; set; }
910
}

‎DTOs/UserRegisterDto.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ public record UserRegisterDto
44
{
55
[JsonProperty("username")]
66
public string Username { get; set; }
7+
78
[JsonProperty("password")]
89
public string Password { get; set; }
10+
911
[JsonProperty("email")]
1012
public string Email { get; set; }
1113
}

0 commit comments

Comments
 (0)