The Swiss
Copyright Act contains a so-called limitation and exception provision for
teaching in classroom settings (CopA Art. 19(1)(b)). This also applies to
closed Moodle courses.
While you can provide and use parts of copyright
protected works, the provision of entire works (e.g. whole books or films) is
also prohibited here, as long as they are available for sale.
As soon as you leave the closed classroom setting, for example by offering a university-wide or publicly accessible Moodle course or a MOOC, at
conferences and at public lectures, you must adhere to the restrictions that
apply to copyrighted works in general (see above).