Пример #1
0
 public async Task UpdateAsync(TaskChangeEntity taskChange)
 {
     _context.Entry(taskChange).State = EntityState.Modified;
     await _context.SaveChangesAsync();
 }
Пример #2
0
        public async Task InsertAsync(TaskChangeEntity taskChange)
        {
            await _context.AddAsync(taskChange);

            await _context.SaveChangesAsync();
        }