예제 #1
0
        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();
            }
        }
예제 #2
0
        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());
            }
        }