ProjectLib/ProjectLibrary/Entites/Library.cs

26 lines
652 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectLibrary.Entites
{
public class Library
{
public int Id { get; private set; }
public string Name { get; private set; } = string.Empty;
public string Address { get; private set; } = string.Empty;
public static Library CreateEntity(int id, string name, string address)
{
return new Library
{
Id = id,
Name = name ?? string.Empty,
Address = address ?? string.Empty
};
}
}
}