25 lines
506 B
C#
25 lines
506 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 AuthorView : IAuthor
|
|
{
|
|
public int Id { get; set; } = -1;
|
|
|
|
[DisplayName("ФИО автора")]
|
|
public string Name { get; set; } = string.Empty;
|
|
public AuthorView() {}
|
|
public AuthorView(IAuthor author)
|
|
{
|
|
Id = author.Id;
|
|
Name = author.Name;
|
|
}
|
|
}
|
|
}
|