Beispiel #1
0
        public ActionResult Index(string drplanguage, string txtname)
        {
            string lang = FillLanguagesList();

            if (ModelState.IsValid)
            {
                DocumentGroup model = new DocumentGroup();
                model.GroupName        = txtname;
                model.Language         = drplanguage;
                model.PageSlug         = Utility.SetPagePlug(txtname);
                ViewBag.ProcessMessage = DocumentManager.AddDocumentGroup(model);

                var grouplist = DocumentManager.GetDocumentGroupList(lang);

                return(View(grouplist));
            }
            return(View());
        }