35 lines
829 B
C#
35 lines
829 B
C#
using LibraryDataModels.AbstractModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LibraryDataModels.Views
|
|
{
|
|
public class BookView : IBook
|
|
{
|
|
public int Id { get; set; } = -1;
|
|
|
|
[DisplayName("Название")]
|
|
public string Name { get; set; } = string.Empty;
|
|
public string BookCover { get; set; } = string.Empty;
|
|
|
|
[DisplayName("ФИО автора")]
|
|
public string Author { get; set; } = string.Empty;
|
|
|
|
[DisplayName("Дата издания")]
|
|
public string ReleaseDate { get; set; } = string.Empty;
|
|
public BookView() {}
|
|
public BookView(IBook book)
|
|
{
|
|
Id = book.Id;
|
|
Name = book.Name;
|
|
BookCover = book.BookCover;
|
|
Author = book.Author;
|
|
ReleaseDate = book.ReleaseDate;
|
|
}
|
|
}
|
|
}
|