Beispiel #1
0
 public async Task UpdateAsync(Atachment atachment)
 {
     _context.Atachments.Update(atachment);
     await _context.SaveChangesAsync();
 }
Beispiel #2
0
 public async Task DeleteAsync(Atachment atachment)
 {
     _context.Atachments.Remove(atachment);
     await _context.SaveChangesAsync();
 }
Beispiel #3
0
        public async Task AddAsync(Atachment atachment)
        {
            await _context.Atachments.AddAsync(atachment);

            await _context.SaveChangesAsync();
        }