Beispiel #1
0
 public Task UpdateCurriculumAsync(Domain.Curriculum curriculum)
 {
     context.Attach(curriculum);
     context.Entry(curriculum).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     return(Task.CompletedTask);
 }
Beispiel #2
0
 public async Task <Domain.Curriculum> AddCurriculumAsync(Domain.Curriculum curriculum)
 {
     return((await context.Curriculums.AddAsync(curriculum)).Entity);
 }