예제 #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);
 }
예제 #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");
     
 }