コード例 #1
0
        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();
        }
コード例 #2
0
 public async Task UpdateTaskAsync(ToDoList task)
 {
     _context.Update(task);
     await _context.SaveChangesAsync();
 }