Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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());
            }
        }