//
        // GET: /Admin/UploadFiles/
        public ActionResult GetFiles()
        {
            DirectoryInfo directory = new DirectoryInfo(Server.MapPath("~/Content/Files"));
            if (!directory.Exists)
            {
                Directory.CreateDirectory(Server.MapPath("~/Content/Files"));

            }
            var allFiles = directory.GetFiles().Count();
            FilesViewModel vm = new FilesViewModel
            {
                PagingInfo = new PagingInfo
                {
                    TotalItems = allFiles
                }

            };
            return View(vm);
        }
        public ActionResult Index(int page = 1)
        {
            DirectoryInfo directory = new DirectoryInfo(Server.MapPath("~/Content/Files"));
            var allFiles = directory.GetFiles().Count();
            var files = directory.GetFiles().Skip(FilesPerPage * (page - 1)).Take(FilesPerPage).ToList();

            FilesViewModel vm = new FilesViewModel
            {
                PagingInfo = new PagingInfo
                {
                    TotalItems = allFiles,
                    CurrentPage = page,
                    ItemsPerPage = FilesPerPage,
                    Service = "Files"
                },
                Files = files
            };
            return PartialView(vm);
        }