コード例 #1
0
 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;
 }
コード例 #2
0
 public async Task <CommandResult> SendCommand(ProductGroupAddCommand command)
 {
     return(await _commandService.SendAndReceiveResult <CommandResult>(command));
 }