public ColorDto(IColorDto item) { if (item != null) { Id = item.Id; Name = item.Name; Comment = item.Comment; } }
private ColorDto _map(IColorDto item) { return(new ColorDto(item)); }
public Check2ColorDto(IColorDto item, int checkId) { IdCheck = checkId; IdColor = item.Id; Comment = item.Comment; }