Ejemplo n.º 1
0
 public void Add(LanguageAddCommand command)
 {
     Name              = command.Name ?? string.Empty;
     Culture           = command.Culture ?? string.Empty;
     UniqueSeoCode     = command.UniqueSeoCode ?? string.Empty;
     FlagImageFileName = command.FlagImageFileName ?? string.Empty;
     Published         = command.Published;
     DisplayOrder      = command.DisplayOrder;
 }
Ejemplo n.º 2
0
        public async Task <CommandResult> SendCommand(LanguageAddCommand command)
        {
            CommandResult commandResult = await _commandService.SendAndReceiveResult <CommandResult>(command);

            return(commandResult);
        }