Ejemplo n.º 1
0
        public IActionResult Index()
        {
            tblKullanicilar tblKullanicilar = _IKullanicilarService.GetById(StaticValues.LoginId);
            ModelUser       user            = new ModelUser();

            user.name    = tblKullanicilar.Isim;
            user.surname = tblKullanicilar.Soyisim;

            DuyurularDtoResponse db    = new DuyurularDtoResponse(_ItblResimDuyuruService, _ItblPdfDuyuruService, _ITblDuyuruService, _ItblResimService, _ItblPdfService);
            ModelDuyurular       model = new ModelDuyurular();

            model.listDuyuru = new List <DuyurularDto>();
            string Url = Request.GetDisplayUrl();

            string[]  sub         = Url.Split("/");
            int       length      = sub.Length;
            int       id          = Int32.Parse(sub[length - 1].Substring(0, 1));
            ModelUser modelDuyuru = new ModelUser();

            modelDuyuru.duyuru = new DuyurularDto();
            foreach (var VARIABLE in db.DuyuruList())
            {
                if (id == VARIABLE.id)
                {
                    modelDuyuru.duyuru = VARIABLE;
                }
            }

            modelDuyuru.duyuru.array = modelDuyuru.duyuru.aciklama.Split("<br>");
            modelDuyuru.name         = tblKullanicilar.Isim;
            modelDuyuru.surname      = tblKullanicilar.Soyisim;
            return(View(modelDuyuru));
        }
        public IActionResult Index()
        {
            tblKullanicilar kullanici = kull.GetById(StaticValues.LoginId);
            ModelUser       model     = new ModelUser();

            model.name    = kullanici.Isim;
            model.surname = kullanici.Soyisim;
            return(View(model));
        }
Ejemplo n.º 3
0
        public IActionResult Index()
        {
            tblKullanicilar tblKullanicilar = _ItblKullanicilarService.GetById(StaticValues.LoginId);
            ModelUser       user            = new ModelUser();

            user.name    = tblKullanicilar.Isim;
            user.surname = tblKullanicilar.Soyisim;
            return(View(user));
        }
        public IActionResult Index()
        {
            tblKullanicilar tblKullanicilar = _ItblKullanicilarService.GetById(StaticValues.LoginId);
            ModelUser       model           = new ModelUser();

            model.name            = tblKullanicilar.Isim;
            model.surname         = tblKullanicilar.Soyisim;
            model.isSuccessfull   = null;
            model.yonetmenliklist = _ItblYonetmenlikService.GetAll();
            model.kanunlist       = ITblKanunService.GetAll();
            return(View(model));
        }
Ejemplo n.º 5
0
 public IActionResult Index()
 {
     try
     {
         tblKullanicilar tblKullanicilar = _ItblKullanicilarService.GetById(StaticValues.LoginId);
         ModelUser       user            = new ModelUser();
         user.name    = tblKullanicilar.Isim;
         user.surname = tblKullanicilar.Soyisim;
         return(View(user));
     }
     catch (Exception e)
     {
         return(Redirect("Giris"));
     }
 }
        public IActionResult Index()
        {
            tblKullanicilar tblKullanicilar = _IKullanicilarService.GetById(StaticValues.LoginId);
            ModelUser       user            = new ModelUser();

            user.name       = tblKullanicilar.Isim;
            user.surname    = tblKullanicilar.Soyisim;
            user.listDuyuru = _ITblDuyuruService.GetAll().ToList();
            return(View(user));
        }
Ejemplo n.º 7
0
        public IActionResult Index()
        {
            string Url = Request.GetDisplayUrl();

            string[]        sub             = Url.Split("/");
            int             length          = sub.Length;
            int             id              = Int32.Parse(sub[length - 1].Substring(0, 1));
            tblKullanicilar tblKullanicilar = _IKullanicilarService.GetById(StaticValues.LoginId);
            ModelUser       model           = new ModelUser();

            if (StaticValues.isİtKanun == 1)
            {
                foreach (var VARIABLE in _IKanunService.GetAll().ToList())
                {
                    if (id == VARIABLE.Id)
                    {
                        model.kanun = VARIABLE;
                    }
                }
            }
            else if (StaticValues.isİtKanun == 2)
            {
                foreach (var VARIABLE in _ITblYonetmenlikService.GetAll().ToList())
                {
                    if (id == VARIABLE.Id)
                    {
                        model.yonetmenlik = VARIABLE;
                    }
                }
            }


            model.name          = tblKullanicilar.Isim;
            model.surname       = tblKullanicilar.Soyisim;
            model.isSuccessfull = null;

            return(View(model));
        }
Ejemplo n.º 8
0
        public IActionResult Index()
        {
            if (StaticValues.LoginId == null)
            {
                StaticValues.LoginId = null;
                return(Redirect("Giris"));
            }

            tblKullanicilar tblKullanicilar = _ItblKullanicilarService.GetById(StaticValues.LoginId);
            ModelUser       user            = new ModelUser();

            user.name    = tblKullanicilar.Isim;
            user.surname = tblKullanicilar.Soyisim;
            return(View(user));
        }
Ejemplo n.º 9
0
        public IActionResult Index(ModelLogin model)
        {
            model.iserror = false;
            int?id = _kullanicilar.LoginID(model.email, model.password);

            if (id != null && _kullanicilar.GetById(id).aktif == 1)
            {
                StaticValues.LoginId = id;
                return(RedirectToAction("Index", "Start", new { area = "MENU" }));
            }
            else
            {
                model.iserror = true;
                return(View(model));
            }
        }