public void Add(BannerAddCommand command) { Id = Common.Common.GenerateGuid(); BannerName = command.BannerName ?? string.Empty; Status = command.Status; BackgroundRGB = command.BackgroundRGB ?? string.Empty; CreatedDateUtc = command.CreatedDateUtc; UpdatedDateUtc = command.CreatedDateUtc; CreatedUid = command.CreatedUid ?? string.Empty; UpdatedUid = command.CreatedUid ?? string.Empty; AddEvent(this.ToAddOrChangCacheEvent()); }
public async Task <CommandResult> SendCommand(BannerAddCommand command) { CommandResult commandResult = await _commandService.SendAndReceiveResult <CommandResult>(command); return(commandResult); }