Beispiel #1
0
 //
 // GET: /Lists/
 public ActionResult Index()
 {
     TokenRepository repository = new TokenRepository(Request, Response);
     ListsViewModel model = new ListsViewModel();
     model.IsConnectedToO365 = repository.IsConnectedToO365;
     model.SiteTitle = repository.GetSiteTitle();            
     model.Lists = repository.GetLists();
     
     return View(model);
 }
Beispiel #2
0
 public ActionResult CreateList(string title)
 {
     TokenRepository repository = new TokenRepository(Request, Response);
     ListsViewModel model = new ListsViewModel();
     model.IsConnectedToO365 = repository.IsConnectedToO365;
     
     repository.CreateList(title);                
                 
     return RedirectToAction("Index");
     
 }
Beispiel #3
0
 public ActionResult Index()
 {
     TokenRepository repository = new TokenRepository(Request,Response);
     Models.IndexViewModel model = new Models.IndexViewModel
     {
         IsConnectedToO365 = repository.IsConnectedToO365,
         SiteTitle = repository.GetSiteTitle()
     };
                                     
     return View(model);
 }
Beispiel #4
0
 public ActionResult Callback(string code)
 {
     TokenRepository repository = new TokenRepository(Request, Response);
     repository.Callback(code);
     return RedirectToAction("Index");
 }
Beispiel #5
0
 public ActionResult Connect(string hostUrl)
 {
     TokenRepository repository = new TokenRepository(Request, Response);
     repository.Connect(hostUrl);
     return View();            
 }