22 lines
429 B
C#
Raw Normal View History

2024-10-11 15:51:22 +04:00
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;
}
}
}