21 lines
465 B
C#
21 lines
465 B
C#
using AyCode.Interfaces;
|
|
using TIAM.Entities.Products;
|
|
|
|
namespace TIAM.Models.Dtos.Products;
|
|
|
|
public class ProductModelDtoName : IAcModelDtoBase
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Name { get; set; }
|
|
|
|
public ProductModelDtoName()
|
|
{ }
|
|
public ProductModelDtoName(Product product) : this(product.Id, product.Name)
|
|
{ }
|
|
|
|
public ProductModelDtoName(Guid id, string name) : this()
|
|
{
|
|
Id = id;
|
|
Name = name;
|
|
}
|
|
} |