public Category(string name, string description) { State = new CategoryState { Id = SequencialGuidGenerator.NewSequentialGuid(), Name = name, Description = description }; }
public static Category ToCategory(CategoryState state) { return(new Category(state)); }
internal Category(CategoryState state) { State = state; }