This commit is contained in:
Dmitrii Kollerov
2026-09-25 08:05:46 +03:00
parent 2b05c26eb3
commit 68da43a673
29 changed files with 867 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
using System;
using System.ComponentModel.DataAnnotations;
using example_csharp_app.Filters;
namespace example_csharp_app.Models.Request;
public class BookCreateRequest
{
[Required]
public string Title { set; get; } = string.Empty;
[Required]
public string Author { set; get; } = string.Empty;
[Required]
public DateTime YearPublished { set; get; }
[Required, Xml]
public string BookIndex { set; get; } = string.Empty;
}
+10
View File
@@ -0,0 +1,10 @@
using System;
namespace example_csharp_app.Models.Request;
public class BookFilterRequest
{
public string? Author { set; get; }
public string? Index { set; get; }
public string? Title { set; get; }
}
+19
View File
@@ -0,0 +1,19 @@
using System;
using System.ComponentModel.DataAnnotations;
using example_csharp_app.Filters;
namespace example_csharp_app.Models.Request;
public class BookUpdateRequest
{
[Required]
public Guid Id { set; get; } = Guid.Empty;
[Required]
public string Title { set; get; } = string.Empty;
[Required]
public string Author { set; get; } = string.Empty;
[Required]
public DateTime YearPublished { set; get; }
[Required, Xml]
public string BookIndex { set; get; } = string.Empty;
}