示例#1
0
        public async Task <Project> RunActivity(
            [ActivityTrigger] Project newProject)
        {
            var project = await projectsRepository
                          .AddAsync(newProject)
                          .ConfigureAwait(false);

            return(project);
        }
示例#2
0
        public async Task <ProjectDocument> RunActivity(
            [ActivityTrigger] ProjectDocument project)
        {
            if (project is null)
            {
                throw new ArgumentNullException(nameof(project));
            }

            project = await projectsRepository
                      .AddAsync(project)
                      .ConfigureAwait(false);

            return(project);
        }