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)); }
// 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()); }
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)); }