public ActionResult GetModeratorInvitesByWiki(string wikiname)
        {
            try
            {

                if (CommonTools.isEmpty(wikiname) == true)
                {
                    return new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest);
                }

                Wiki wk = this.wkmngr.GetWiki(wikiname);
                if (wk == null)
                {
                    return new HttpStatusCodeResult(System.Net.HttpStatusCode.NotFound);
                }
                List<WikiModInvitations> wkinvs = this.wkmodinvngr.GetModeratorInvitesByWiki(wikiname);
                ViewWikiModInvites wkminv = new ViewWikiModInvites();
                wkminv.Wiki = new ViewWiki();
                wkminv.Wiki.ImportFromModel(wk);
                wkminv.ModeratorInvites = new List<ViewWikiModInvitations>();
                foreach(var vk in wkinvs)
                {
                    ViewWikiModInvitations i = new ViewWikiModInvitations();
                    i.ImportFromModel(vk);
                    wkminv.ModeratorInvites.Add(i);
                }

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

                CommonTools.ErrorReporting(ex);
                return new HttpStatusCodeResult(System.Net.HttpStatusCode.InternalServerError);
            }
        }
        public ActionResult GetModeratorInviteDetails(string wikiname,int ? id)
        {
            try
            {

                if (CommonTools.isEmpty(wikiname) == true && id>0)
                {
                    return new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest);
                }
                WikiModInvitations inv = this.wkmodinvngr.GetModeratorInviteById(wikiname, Convert.ToInt32(id));
                Wiki wk = this.wkmngr.GetWiki(wikiname);
                if (wk == null &&inv==null )
                {
                    return new HttpStatusCodeResult(System.Net.HttpStatusCode.NotFound);
                }

                ViewWikiModInvitations vinv = new ViewWikiModInvitations();
                vinv.ImportFromModel(inv);
                return View(vinv);

            }
            catch (Exception ex)
            {

                CommonTools.ErrorReporting(ex);
                return new HttpStatusCodeResult(System.Net.HttpStatusCode.InternalServerError);
            }
        }