public void Add(AttrCategoryAddCommand command) { AttributeId = command.AttributeId; CategoryId = command.CategoryId; IsFilter = command.IsFilter; FilterSpan = command.FilterSpan; BaseUnitId = command.BaseUnitId; AttributeType = command.AttributeType; DisplayOrder = command.DisplayOrder; IsRequired = command.IsRequired; AddOrChangeEvent(); }
public async Task <CommandResult> SendCommand(AttrCategoryAddCommand command) { CommandResult commandResult = await _commandService.SendAndReceiveResult <CommandResult>(command); return(commandResult); }