// // GET: /Dropbox/ public ActionResult Index() { UserLogin token = Session["dropboxToken"] as UserLogin; Dropbox dropbox = new Dropbox(token); Session.Remove(DROPBOX_TOKEN); // We no longer need this one Session[DROPBOX_ACCESS_TOKEN] = dropbox.Token; int newFilesCount = dropbox.GetNewDocumentsCount(); ViewBag.NewFilesCount = newFilesCount; return(View()); }