23 lines
418 B
C#
23 lines
418 B
C#
namespace zero.Core.Entities
|
|
{
|
|
public class ZeroReference
|
|
{
|
|
public ZeroReference() { }
|
|
|
|
public ZeroReference(IZeroEntity entity)
|
|
{
|
|
Id = entity.Id;
|
|
Name = entity.Name;
|
|
}
|
|
|
|
public static ZeroReference From(IZeroEntity entity)
|
|
{
|
|
return entity == null ? null : new ZeroReference(entity);
|
|
}
|
|
|
|
public string Id { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
}
|
|
}
|