Exemplo n.º 1
0
        public ActionResult EditMarriage(int memberMarriageId)
        {
            var model        = new MemberMarriageCreateEditViewModel();
            var marriageInfo = memberProvider.GetMarriage(memberMarriageId);

            Mapper.DynamicMap(marriageInfo, model);
            model.MarriedToMember = marriageInfo.SpouseId.HasValue;
            model.SpouseNo        = marriageInfo?.Member?.MemberNo;
            return(PartialView("MarriageCreateEdit", model));
        }