public ActionResult Index(string redirectbyajax, string entryid, string actiontype, string fa) { //fa: form another - default form popup IDbConnection dbConn = new OrmliteConnection().openConn(); var dict = new Dictionary <string, object>(); dict["activestatus"] = CustomModel.GetActiveStatus(); dict["listLoginType"] = CustomModel.GetLoginTypeDDL(); dict["listlanguage"] = CustomModel.GetLanguage(); dict["areasname"] = "Admin"; dict["redirectbyajax"] = string.IsNullOrEmpty(redirectbyajax) ? "0" : "1"; dbConn.Close(); //param cho form ViewBag.entryid = string.IsNullOrEmpty(entryid) ? "0" : entryid; ViewBag.actiontype = string.IsNullOrEmpty(actiontype) ? "" : actiontype; ViewBag.fa = string.IsNullOrEmpty(fa) ? "" : fa; return(View("UserManagementTree", dict)); }