public void Add(MenuAddCommand command) { Id = Common.Common.GenerateGuid(); LanguageId = command.LanguageId; Code = string.Empty; CreatedDateUtc = Extensions.GetCurrentDateUtc(); CreatedUid = string.Empty; UpdatedDateUtc = Extensions.GetCurrentDateUtc(); UpdatedUid = string.Empty; ParentId = command.ParentId; Name = command.Name; Type = (EnumDefine.MenuTypeEnum)command.Type; Url = command.Url; Condition = command.Condition; Position = command.Position; StoreId = command.StoreId; Status = command.Status; Priority = command.Priority; AddOrChangeEvent(); }
public async Task <CommandResult> SendCommand(MenuAddCommand command) { CommandResult commandResult = await _commandService.SendAndReceiveResult <CommandResult>(command); return(commandResult); }