public void Add(ProductGroupAddCommand command) { Id = Common.Common.GenerateGuid(); Name = command.Name ?? string.Empty; Description = command.Description ?? string.Empty; Status = command.Status; CreatedDateUtc = command.CreatedDateUtc; UpdatedDateUtc = command.CreatedDateUtc; CreatedUid = command.CreatedUid ?? string.Empty; UpdatedUid = command.CreatedUid ?? string.Empty; }
public async Task <CommandResult> SendCommand(ProductGroupAddCommand command) { return(await _commandService.SendAndReceiveResult <CommandResult>(command)); }