Ejemplo n.º 1
0
        public ActionResult UninstallTheApp(string spHostUrl)
        {
            var context = SharePointContextProvider.Current.GetSharePointContext(HttpContext);
            var service = new SharePointService(context);

            service.UninstallTheApp();
            TempData["Message"] = "The App has been uninstalled successfully.";
            return(RedirectToAction("Home", new { SPHostUrl = spHostUrl }));
        }