Created
November 11, 2018 14:01
-
-
Save jinan-kordab/316a9a0e24678edfa7f2485737445a96 to your computer and use it in GitHub Desktop.
Action Result that checks for spinner token and time stats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
public ActionResult CheckForSpinnerSession() | |
{ | |
string returnvalue = "false"; | |
string fileDownloadTime = "false"; | |
if (HttpContext.Session["spinnerToken"] != null) | |
{ | |
returnvalue = Session["spinnerToken"].ToString(); | |
} | |
if (HttpContext.Session["timetooktodownload"] != null) | |
{ | |
fileDownloadTime = HttpContext.Session["timetooktodownload"].ToString(); | |
} | |
return Json(new Models.DownloadStats { FileDownloadOK= returnvalue , FileDownloadTime= fileDownloadTime}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment