Exemple #1
0
        public ActionResult getLstCountry()
        {
            LibGetDataDB getdb = new LibGetDataDB();

            string countryString = getdb.getDataUrl("http://localhost:55028/Categories/getLstContry");

            return(Json(new
            {
                Success = true,
                Data = countryString,
            }, JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
        // GET: Content
        public ActionResult Index(string menuId)
        {
            LibGetDataDB getdb = new LibGetDataDB();

            string provinceString = getdb.getDataUrl("http://localhost:55028/Categories/getLstProvince/7023A3EE5371681DE054000C29748FC6");

            //ViewBag.PageCategory = "{\"province\":{" + provinceString + "}, \"country\":{" + countryString + "}}";

            ViewBag.PageCategory = provinceString;

            return(View());
        }
Exemple #3
0
        public ActionResult getLstProvince()
        {
            LibGetDataDB getdb = new LibGetDataDB();

            string provinceString = getdb.getDataUrl("http://localhost:55028/Categories/getLstProvince/7023A3EE5371681DE054000C29748FC6");

            return(Json(new
            {
                Success = true,
                Data = provinceString
            }, JsonRequestBehavior.AllowGet));
        }
        public ActionResult GetMenuLeft()
        {
            //JObject json = null;
            var contentData = new List <MenuLeftEntity>();

            try
            {
                LibGetDataDB getdb          = new LibGetDataDB();
                string       responseString = getdb.getDataUrl("http://localhost:55028/getMenuLeft/getMenuLeft");

                //json = JObject.Parse(responseString);

                contentData = JsonConvert.DeserializeObject <List <MenuLeftEntity> >(responseString);
                //List<MenuLeftEntity> oMyclass = Newtonsoft.Json.JsonConvert.DeserializeObject<List<MenuLeftEntity>>(Jsonstring);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            ViewBag.ListMenu = contentData;

            return(PartialView("_GetMenuLeft", contentData));
        }