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

            TempData["Message"] = service.Deploy();
            return(RedirectToAction("Home", new { SPHostUrl = spHostUrl }));
        }