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; }
public async Task <CommandResult> SendCommand(LanguageAddCommand command) { CommandResult commandResult = await _commandService.SendAndReceiveResult <CommandResult>(command); return(commandResult); }