public async Task <bool> UpdateCourse(Entities.Concrete.Course course) { var updateResult = await _courseCollection.ReplaceOneAsync(filter : g => g.Id == course.Id, replacement : course); return(updateResult.IsAcknowledged && updateResult.ModifiedCount > 0); }
public async Task CreateCourse(Entities.Concrete.Course course) { await _courseCollection.InsertOneAsync(course); }