public void Delete(int id) { var user = _context.users.Find(id); if (user != null) { _visitedSightsService.Delete(user); _statsService.Delete(user); _gameStatsService.Delete(user); _context.users.Remove(user); _context.SaveChanges(); } }