예제 #1
0
        public JsonResult FiltreliDepoGetir(int?esyaId, int?sehirId, String aranan)
        {
            var         depoEsyalari = depoBAL.FiltreliDepoGetir(KullaniciBilgileriDondur.KullaniciId(), esyaId, sehirId, aranan);
            DepoJsModel depoJs       = new DepoJsModel()
            {
                BasariliMi = true,
                DepoList   = depoEsyalari
            };

            depoJs.DepoEsyaSayisi = depoJs.DepoList.Count;
            Thread.Sleep(2000);
            return(Json(depoJs, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public JsonResult TumunuGetir()
        {
            var         depoEsyalari = depoBAL.DepoGetir(KullaniciBilgileriDondur.KullaniciId());
            DepoJsModel depoJs       = new DepoJsModel()
            {
                BasariliMi = true,
                DepoList   = depoEsyalari
            };

            depoJs.DepoEsyaSayisi = depoJs.DepoList.Count;
            Thread.Sleep(2000);
            return(Json(depoJs, JsonRequestBehavior.AllowGet));
        }