public async Task <IActionResult> Index(int pid)
        {
            if (pid == 0)
            {
                pid = Int32.Parse(TempData["currentPid"].ToString());
            }
            var fileUploadViewModel = await LoadAllFiles();

            fileUploadViewModel.CurrentFavourite = _favouriteRepository.GetFavouriteByPid(pid);
            ViewBag.Message        = TempData["Message"];
            TempData["currentPid"] = pid;

            return(View(fileUploadViewModel));
        }