Exemplo n.º 1
0
        public override async Task <IExecutionResult> Handle(UserAggregate user, CreateProjectCommand cmd)
        {
            await _externalService.DoAnything();

            try
            {
                await Resolve <ProjectService>().Create(user, cmd.ProjectId, cmd.Name);
            }
            catch (Exception e)
            {
                return(ExecutionResult.Failed(e.Message));
            }

            return(ExecutionResult.Success());
        }