public IActionResult SubmitRSVP([FromForm] ResponseModel _rm) { try { RSVPSubmissionGate.Submit(_rm.rsvpResponse, _rm.cancelReason, _rm.validationGuid, paths.Attendance); } catch (System.IO.IOException) { return(View("~/Views/Errors/GenericError.cshtml", "Something happened while trying to submit your RSVP. Please try again.")); } ResponseList rl; try { rl = new ResponseList(paths.Schedule, paths.Attendance); } catch (System.IO.IOException) { return(View("~/Views/Errors/GenericError.cshtml", "Something happened while trying to load the list of RSVP responses. Please try again.")); } return(RedirectToAction("RSVPList")); //return View("RSVPList", new ResponseList(paths.Schedule, paths.Attendance)); }
public IActionResult UpdateShowNoShow(string _show, Guid _rsvpGuid, Guid _passthroughkey) { if (_passthroughkey.ToString() != "5ac59a93-b1fb-4153-af95-b37e3636197d") { return(View("~/Views/Errors/GenericError.cshtml", "uh-uh-uh, you didn't say the magic word")); } RSVPSubmissionGate.Submit(_rsvpGuid, paths.Attendance, _show); return(RedirectToAction("RSVPHistoryAdmin", new { key = _passthroughkey })); }