Beispiel #1
0
        public ActionResult FillAppWebNotesWith1G(string spHostUrl)
        {
            var context = SharePointContextProvider.Current.GetSharePointContext(HttpContext);
            var service = new SharePointService(context);
            var count   = service.FillAppWebNotesWith1G();

            TempData["Message"] = count + " items have been added to the App Web Notes list, and every item size is more than 1MB.";
            return(RedirectToAction("Home", new { SPHostUrl = spHostUrl }));
        }