コード例 #1
0
ファイル: Menu.cs プロジェクト: MarkHollander/Gico_System
 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();
 }
コード例 #2
0
        public async Task <CommandResult> SendCommand(MenuAddCommand command)
        {
            CommandResult commandResult = await _commandService.SendAndReceiveResult <CommandResult>(command);

            return(commandResult);
        }