protected async override Task <Either <CommandResult, Error> > ExecuteCommand(PostCreateCommand command) { Space?space = await spaceService.FindByName(command.Space); if (space == null) { return(new NotFoundError($"Space {command.Space} does not exist.")); } Post p = await postService.Create(command.Data, space, command.User); return(Insert(p.Id)); }