示例#1
0
        public ActionResult Search(string search, int p = 0)
        {
            ViewBag.Title   = "Recherche";
            ViewBag.Message = string.Format("Recherche de [ {0} ] :", search);

            InitPagination(string.Format("{0}?{1}={2}&p=", Request.Path, "search", search), p, DocumentCollection.SearchByUserCount(UserEntity, search));

            DocumentCollection documents = DocumentCollection.PageSearchByUser(p, Utility.Misc.Constants.itemByPage, null, UserEntity, search);

            return(View("Index", documents));
        }