first commit
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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