Exemplo n.º 1
0
        public ViewResult MembershipDetail(MembershipDetaiRequestViewModel membershipDetaiRequestViewModel)
        {
            if (!string.IsNullOrEmpty(membershipDetaiRequestViewModel.MembershipId))
            {
                membershipDetaiRequestViewModel.Membership =
                    membershipRepository.FindByMembershipId(membershipDetaiRequestViewModel.MembershipId);
            }

            if (!string.IsNullOrEmpty(membershipDetaiRequestViewModel.Customer1ContactNumber))
            {
                membershipDetaiRequestViewModel.Membership =
                    membershipRepository.FindByCustomer1ContactNumber(membershipDetaiRequestViewModel.Customer1ContactNumber);
            }
            return View(membershipDetaiRequestViewModel);
        }
 public void SetUp()
 {
     membershipDetaiRequestViewModel = new MembershipDetaiRequestViewModel();
     membership = new Membership();
 }