public IActionResult LanguagesList(string language_state) { if (!LoginUtil.CheckIfLoggedIn(HttpContext)) { return(View(nameof(Index))); } StateOfRequest mState; if (string.IsNullOrEmpty(language_state)) { mState = new StateOfRequest("LangNo"); } else { mState = JsonUtil.GetObjectFromJsonString <StateOfRequest>(language_state); } List <Language> languages = _languagesManager.GetOnePageOfLanguages(mState); ViewBag.LanguageState = JsonUtil.SetJsonStringFromObject(mState); return(View(languages)); }