public ActionResult SaveAgendaItem(string eventID, string itemID, string title, string description) { Models.EventData eventData = new Models.EventData(); string saved = eventData.UpdateAgendaItem(eventID, itemID, title, description); if (saved.StartsWith("Point8020.Error")) { return(RedirectToAction("TrappedError", "Home", new { ErrorMessage = "Item could not be saved: Error Code is: " + saved, SPHostUrl = SharePointContext.GetSPHostUrl(HttpContext.Request).AbsoluteUri })); } else { return(RedirectToAction("Agenda", "Home", new { EventID = eventID, SPHostUrl = SharePointContext.GetSPHostUrl(HttpContext.Request).AbsoluteUri })); } }