public ActionResult Approve(ApproveAddress address) { try { Bus.Instance.Publish(new MemberAddressApprovedMessage { EventId = NewId.NextGuid(), Timestamp = DateTime.UtcNow, MemberId = address.MemberId, Approver = address.Approver, }); return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Approve(ApproveAddress address) { try { Bus.Instance.Publish(new MemberAddressApprovedMessage { EventId = NewId.NextGuid(), Timestamp = DateTime.UtcNow, MemberId = address.MemberId, Approver = address.Approver, }); return(RedirectToAction("Index")); } catch { return(View()); } }