public ActionResult EditBasicInfo(string wikiname)
        {
            if (CommonTools.isEmpty(wikiname))
            {
                return new HttpStatusCodeResult(HttpStatusCode.BadRequest);

            }
            Wiki wk = this.wkmngr.GetWiki(wikiname);
            if (wk == null)
            {
                return new HttpStatusCodeResult(HttpStatusCode.NotFound);
            }
            if (usremngr.UserHasAccessToWiki(this.usremngr.GetUser(this.User.Identity.Name), wk, true) == false)
            {
                return new HttpStatusCodeResult(HttpStatusCode.Forbidden);
            }
            ViewWiki vwk = new ViewWiki();
            vwk.ImportFromModel(wk);
            return View(vwk);
        }
        // GET: HomeWiki
        public ActionResult Index()
        {
            try
            {

                List<Wiki> wikis = this.wmngr.ListWiki();
                List<ViewWiki> wkv = new List<ViewWiki>();
                foreach ( var w in wikis)
                {
                    ViewWiki v = new ViewWiki();
                    v.ImportFromModel(w);
                    wkv.Add(v);
                }

                return View(wkv);
            }
            catch (Exception ex)
            {

                CommonTools.ErrorReporting(ex);
                return null;
            }
        }
        public ActionResult EditWiki(string wikiname)
        {
            if (CommonTools.isEmpty(wikiname))
            {
                return new HttpStatusCodeResult(HttpStatusCode.BadRequest);

            }
            Wiki wk = this.wkmngr.GetWiki(wikiname);
            ViewBag.wikiname = wikiname;
            ViewWiki vwk = new ViewWiki();
            vwk.ImportFromModel(wk);
            return View(vwk);
        }
        public ActionResult Details(string wikiname)
        {
            try
            {
                string id = wikiname;
                if ( CommonTools.isEmpty(id))
                {
                    return new HttpStatusCodeResult(HttpStatusCode.BadRequest);

                }
                Wiki wk = this.wmngr.GetWiki(id);
                if ( wk==null)
                {
                    return HttpNotFound();
                }
                ViewWiki vwk = new ViewWiki();
                vwk.ImportFromModel(wk);
                return View(vwk);

            }
            catch (Exception ex)
            {

                CommonTools.ErrorReporting(ex);
                return null;
            }
        }