28 lines
670 B
C#
28 lines
670 B
C#
using LibraryDataModels.AbstractModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LibraryDataModels.Dtos
|
|
{
|
|
public class BookDto : IBook
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; } = string.Empty;
|
|
public string BookCover { get; set; } = string.Empty;
|
|
public string Author { get; set; } = string.Empty;
|
|
public string ReleaseDate { get; set; } = string.Empty;
|
|
public BookDto() {}
|
|
public BookDto(IBook book)
|
|
{
|
|
Id = book.Id;
|
|
Name = book.Name;
|
|
BookCover = book.BookCover;
|
|
Author = book.Author;
|
|
ReleaseDate = book.ReleaseDate;
|
|
}
|
|
}
|
|
}
|