Ejemplo n.º 1
0
        public ActionResult Delete(Product product)
        {
            var spContext = SharePointContextProvider.Current.GetSharePointContext(HttpContext);

            SharePointService.DeleteProduct(spContext, product);
            return(RedirectToAction("Index", new { SPHostUrl = SharePointContext.GetSPHostUrl(HttpContext.Request).AbsoluteUri }));
        }