예제 #1
0
        public IActionResult Index()
        {
            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));
            ModelDuyuru modelDuyuru = new ModelDuyuru();

            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>");
            return(View(modelDuyuru));
        }
예제 #2
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));
        }
예제 #3
0
        public IActionResult Index()
        {
            DuyurularDtoResponse db    = new DuyurularDtoResponse(_ItblResimDuyuruService, _ItblPdfDuyuruService, _ITblDuyuruService, _ItblResimService, _ItblPdfService);
            ModelDuyurular       model = new ModelDuyurular();

            model.listDuyuru = new List <DuyurularDto>();

            for (int i = db.DuyuruList().Count - 1; 0 <= i; i--)
            {
                model.listDuyuru.Add(db.DuyuruList()[i]);
            }
            return(View(model));
        }