public async Task <RefreshTask> UpdateVersionControlAsync(Guid id) { RefreshTask task = new RefreshTask { Scope = TaskScopeKind.VersionControl, TargetId = id }; context.Tasks.Add(task); await context.SaveChangesAsync(); return(task); }
public async Task <RefreshTask> UpdateRepositoryAsync(Guid id) { RefreshTask task = new RefreshTask { Scope = TaskScopeKind.Repository, TargetId = id }; context.Tasks.Add(task); await context.SaveChangesAsync(); return(task); }