Example #1
0
        public async Task RemoveCourseRepoSettings(string courseId)
        {
            var courseGit = new CourseGit {
                CourseId = courseId
            };

            await SetCourseRepoSettings(courseGit).ConfigureAwait(false);
        }
Example #2
0
 public async Task SetCourseRepoSettings(CourseGit courseGit)
 {
     courseGit.CreateTime = DateTime.Now;
     db.CourseGitRepos.Add(courseGit);
     await db.SaveChangesAsync();
 }