first commit
This commit is contained in:
10
BookHive/DTO/Author/CreateAuthorDto.cs
Normal file
10
BookHive/DTO/Author/CreateAuthorDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace BookHive.DTO.Author;
|
||||
|
||||
public class CreateAuthorDto
|
||||
{
|
||||
public string? FirstName { get; set; }
|
||||
public string? LastName { get; set; }
|
||||
public string? Biography { get; set; }
|
||||
public DateOnly BirthDate { get; set; }
|
||||
public string? Nationality { get; set; }
|
||||
}
|
||||
15
BookHive/DTO/Author/GetAuthorDetailsDto.cs
Normal file
15
BookHive/DTO/Author/GetAuthorDetailsDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using BookHive.DTO.Book;
|
||||
|
||||
namespace BookHive.DTO.Author;
|
||||
|
||||
public class GetAuthorDetailsDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? FirstName { get; set; }
|
||||
public string? LastName { get; set; }
|
||||
public string? Biography { get; set; }
|
||||
public DateOnly BirthDate { get; set; }
|
||||
public string? Nationality { get; set; }
|
||||
|
||||
public List<GetBookDto>? Books { get; set; }
|
||||
}
|
||||
8
BookHive/DTO/Author/GetAuthorDto.cs
Normal file
8
BookHive/DTO/Author/GetAuthorDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace BookHive.DTO.Author;
|
||||
|
||||
public class GetAuthorDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? FirstName { get; set; }
|
||||
public string? LastName { get; set; }
|
||||
}
|
||||
11
BookHive/DTO/Author/UpdateAuthorDto.cs
Normal file
11
BookHive/DTO/Author/UpdateAuthorDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace BookHive.DTO.Author;
|
||||
|
||||
public class UpdateAuthorDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? FirstName { get; set; }
|
||||
public string? LastName { get; set; }
|
||||
public string? Biography { get; set; }
|
||||
public DateOnly BirthDate { get; set; }
|
||||
public string? Nationality { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user