public async Task DeleteContactMessageAsync(int id) { var contactmessage = await GetContactMessage(id); _context.Remove(contactmessage); await _context.SaveChangesAsync(); }
public async Task DeleteAsync(int id) { var reservation = await GetAsync(id); _context.Remove(reservation); await _context.SaveChangesAsync(); }