public ActionResult AGiris(Akademisyen k)
        {
            if (!ModelState.IsValid)
            {
                using (InternshipEntities dc = new InternshipEntities())
                {
                    var v = dc.Akademisyen.Where(a => a.aka_mail.Equals(k.aka_mail) &&
                        a.aka_parola.Equals(k.aka_parola)).FirstOrDefault();
                    //List<Akademisyen> akaliste = db.Akademisyen.ToList();
                    //ViewBag.akaliste = akaliste;
                    if (v != null)
                    {
                        Session["LogedUserID"] = v.aka_tc.ToString();
                        Session["LogedUserName"] = v.aka_ad.ToString();
                        List<Ogrenci> ogrliste = db.Ogrenci.ToList();
                        ViewBag.ogrliste = ogrliste;
                        var ogrenciler = from f in db.Ogrenci

                                         select f;
                        ogrliste = ogrenciler.ToList();
                        ViewBag.ogrliste = ogrliste;

                        List<Akademisyen> akaliste = db.Akademisyen.ToList();
                        ViewBag.akaliste = akaliste;
                        var sorumlular = from f in db.Akademisyen
                                         where f.aka_sorumlumu == true
                                         select f;
                        akaliste = sorumlular.ToList();
                        ViewBag.akaliste = akaliste;

                        return RedirectToAction("../AkademisyenIslem/OnayVeYorum");
                    }
                    else
                    {
                        return RedirectToAction("../AkademisyenIslem/AGiris");
                    }

                }

            }
            return View(k.ToString());
        }
        public ActionResult OGiris(Ogrenci k)
        {
            if (!ModelState.IsValid)
            {
                using (InternshipEntities dc = new InternshipEntities())
                {
                    var v = dc.Ogrenci.Where(a => a.ogr_mail.Equals(k.ogr_mail) &&
                        a.ogr_parola.Equals(k.ogr_parola)).FirstOrDefault();

                    if (v != null)
                    {
                        Session["LogedUserID"] = v.ogr_tc.ToString();
                        Session["LogedUserName"] = v.ogr_ad.ToString();
                        return RedirectToAction("../StajBilgis/Index");
                    }
                    else
                    {
                        return RedirectToAction("../OgrenciIslem/OGiris");
                    }

                }
            }
            return View(k);
        }