Exemplo n.º 1
0
        public ActionResult Directory(string id, int p = 0)
        {
            SoftFluent.Samples.GED.Directory dir = SoftFluent.Samples.GED.Directory.Load(Guid.Parse(id));
            ViewBag.Title   = "Dossier";
            ViewBag.Message = string.Format("Fichiers du dossier [ {0} ] :", dir.Title);

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

            DocumentCollection documents = DocumentCollection.PageLoadByDirectoryUser(p, Utility.Misc.Constants.itemByPage, null, dir, UserEntity);

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