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