Does the admission committee for graduate studies look down on foundation courses
In general, if the GPA is high, this shouldn't be too much of a big deal. Normally I would look upon such a class as equivalent to an introductory-level course, and would not "look down" upon such a course. If the grade in such a course is poor, however, that could affect the decision.

If you are concerned about reviewers at another school evaluating this course appropriately, you could always include a note about it somewhere as part of your application (either master's or PhD).