public ActionResult Index()
        {
            LoginController Log = new LoginController();
            string          i, n, tekst;

            Log.metoda(out i, out n);
            tekst = "Witaj " + i + " " + n;

            ViewBag.powitanie = tekst;

            int ID;

            Log.wyciaganie_ID(out ID);

            SzkolaEntities db     = new SzkolaEntities();
            Grades         Grades = new Grades();

            var Zmienna = (from table0 in db.User
                           join table1 in db.Teacher on table0.UserID equals table1.UserID
                           join table2 in db.School_Class on table1.ClassID equals table2.ClassID
                           where
                           table0.UserID == ID
                           select new Grades
            {
                ClassID = table2.ClassID,
                Nazwa_Klasy = table2.Nazwa
            }).Distinct().ToList();



            return(View("Index", "~/Views/Main_Layout.cshtml", Zmienna));
        }
        public ActionResult Index_Student(string wiadomosc)
        {
            LoginController Log = new LoginController();
            string          imie, nazwisko, tekst;

            Log.metoda(out imie, out nazwisko);
            tekst = "Witaj " + imie + " " + nazwisko;


            ViewBag.powitanie = tekst;



            return(View("Index_Student", "~/Views/Main_Layout.cshtml"));
        }