public void Update(PresentationConfiguration record) { var original = _context.PresentationConfigurations.Find(record.Id); if (original == null) { return; } original.Configuration = record.Configuration; original.SubjectIdentifier = record.SubjectIdentifier; _context.Update(original); _context.SaveChanges(); }
public async Task UpdateTaskAsync(ToDoList task) { _context.Update(task); await _context.SaveChangesAsync(); }