public ActionResult Edit(PersonPrimaryInfo person)
 {
     if (ModelState.IsValid)
     {
         unitOfWork.PersonPrimaryInfoRepository.Update(person);
         unitOfWork.Save();
         return RedirectToAction("Index");
     }
     return View(person);
 }
        private PersonPrimaryInfo GetPersonPrimaryInfoFromPersonContactInfoView(PersonContactInfoView personContactInfoView, PersonPrimaryInfo personPrimaryInfo)
        {
            personPrimaryInfo.PersonPrimaryInfoID = personContactInfoView.PersonPrimaryInfoID;
            personPrimaryInfo.Title = personContactInfoView.Title;
            personPrimaryInfo.FirstName = personContactInfoView.FirstName;
            personPrimaryInfo.LastName = personContactInfoView.LastName;
            personPrimaryInfo.Suffix = personContactInfoView.Suffix;
            personPrimaryInfo.IsMale = personContactInfoView.IsMale;

            if (User.IsInRole(AppRole.AccountingManager))
            {
                personPrimaryInfo.MembershipStartDate = personContactInfoView.MembershipStartDate;
                personPrimaryInfo.MembershipEndDate = personContactInfoView.MembershipEndDate;
            }

            personPrimaryInfo.PromptContactInformationUpdate = personContactInfoView.PromptContactInformationUpdate;
            personPrimaryInfo.DOB = personContactInfoView.DOB;

            return personPrimaryInfo;
        }