public GeneralItemDTO(string name, GeneralCategoryDTO category) { Name = name; Category = category; }
public GeneralItemDTO(GeneralItem item) { Id = item.Id; Name = item.Name; Category = new GeneralCategoryDTO(item.Category); }