public async Task <Project> RunActivity( [ActivityTrigger] Project newProject) { var project = await projectsRepository .AddAsync(newProject) .ConfigureAwait(false); return(project); }
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); }