Exemple #1
0
        public JsonResult LangItems(int pageNumber, string lang)
        {
            ViewBag.Lang = lang;

            var model = new BootBaronLib.AppSpec.DasKlub.BOL.UserContent.Contents();

            model.GetContentPageWise(pageNumber, pageSize, lang);

            StringBuilder sb = new StringBuilder();

            foreach (BootBaronLib.AppSpec.DasKlub.BOL.UserContent.Content cnt in model)
            {
                sb.Append(cnt.ToUnorderdListItem);
            }

            return Json(new
            {
                ListItems = sb.ToString()
            });
        }
Exemple #2
0
        public ActionResult Lang(string lang)
        {
            ViewBag.Lang = lang;

            var model = new BootBaronLib.AppSpec.DasKlub.BOL.UserContent.Contents();

            model.GetContentPageWise(1, pageSize, lang);

            LoadTagCloud();

            LoadLang();

            ViewBag.EnableLoadingMore = (model.Count >= pageSize);

            return View(model);
        }