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

            await _context.SaveChangesAsync();
        }