22 lines
429 B
C#
22 lines
429 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 AuthorDto : IAuthor
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; } = string.Empty;
|
|
public AuthorDto() {}
|
|
public AuthorDto(IAuthor author)
|
|
{
|
|
Id = author.Id;
|
|
Name = author.Name;
|
|
}
|
|
}
|
|
}
|