Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        public async Task <CommandResult> SendCommand(BannerAddCommand command)
        {
            CommandResult commandResult = await _commandService.SendAndReceiveResult <CommandResult>(command);

            return(commandResult);
        }