first commit
This commit is contained in:
13
BookHive/DTO/Book/CreateBookDto.cs
Normal file
13
BookHive/DTO/Book/CreateBookDto.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace BookHive.DTO.Book;
|
||||
|
||||
public class CreateBookDto
|
||||
{
|
||||
public string? Title { get; set; }
|
||||
public string? Isbn { get; set; }
|
||||
public string? Summary { get; set; }
|
||||
public int PageCount { get; set; }
|
||||
public DateOnly PublishedDate { get; set; }
|
||||
public string? Genre { get; set; }
|
||||
|
||||
public int AuthorId { get; set; }
|
||||
}
|
||||
20
BookHive/DTO/Book/GetBookDetailsDto.cs
Normal file
20
BookHive/DTO/Book/GetBookDetailsDto.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using BookHive.DTO.Author;
|
||||
using BookHive.DTO.Review;
|
||||
|
||||
namespace BookHive.DTO.Book;
|
||||
|
||||
public class GetBookDetailsDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? Title { get; set; }
|
||||
public string? Isbn { get; set; }
|
||||
public string? Summary { get; set; }
|
||||
public int PageCount { get; set; }
|
||||
public DateOnly PublishedDate { get; set; }
|
||||
public string? Genre { get; set; }
|
||||
|
||||
public int AuthorId { get; set; }
|
||||
public GetAuthorDto? Author { get; set; }
|
||||
|
||||
public List<GetReviewDto>? Reviews { get; set; }
|
||||
}
|
||||
9
BookHive/DTO/Book/GetBookDto.cs
Normal file
9
BookHive/DTO/Book/GetBookDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace BookHive.DTO.Book;
|
||||
|
||||
public class GetBookDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? Title { get; set; }
|
||||
public DateOnly PublishedDate { get; set; }
|
||||
public string? Genre { get; set; }
|
||||
}
|
||||
14
BookHive/DTO/Book/UpdateBookDto.cs
Normal file
14
BookHive/DTO/Book/UpdateBookDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace BookHive.DTO.Book;
|
||||
|
||||
public class UpdateBookDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? Title { get; set; }
|
||||
public string? Isbn { get; set; }
|
||||
public string? Summary { get; set; }
|
||||
public int PageCount { get; set; }
|
||||
public DateOnly PublishedDate { get; set; }
|
||||
public string? Genre { get; set; }
|
||||
|
||||
public int AuthorId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user