// // 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); }
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"); }