public async Task UpdateAsync(Atachment atachment) { _context.Atachments.Update(atachment); await _context.SaveChangesAsync(); }
public async Task DeleteAsync(Atachment atachment) { _context.Atachments.Remove(atachment); await _context.SaveChangesAsync(); }
public async Task AddAsync(Atachment atachment) { await _context.Atachments.AddAsync(atachment); await _context.SaveChangesAsync(); }