Пример #1
0
        public ActionResult Index()
        {
            List <SistemKullanicilarModel> sistemKullanici = (from kullanici in sistemKullaniciService.SistemKullanicilariGetir() where kullanici.Name.Equals(User.Identity.Name) select kullanici).ToList();

            ViewBag.ProfilImage = Url.Content(sistemKullanici[0].MedyaUrl.ToString());
            return(View());
        }
        public JsonResult HocaListesiGetir()
        {
            var hocaSistemKullanici = from hoca in sistemKullaniciService.SistemKullanicilariGetir() where hoca.Role == "T" select hoca;

            return(new JsonResult {
                Data = hocaSistemKullanici, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }