public FamilyMemberResponse Create(FamilyMemberViewModel familyMember)
        {
            FamilyMemberResponse response = new FamilyMemberResponse();

            try
            {
                FamilyMember addedFamilyMember = unitOfWork.GetFamilyMemberRepository().Create(familyMember.ConvertToFamilyMember());
                unitOfWork.Save();

                response.FamilyMember = addedFamilyMember.ConvertToFamilyMemberViewModel();
                response.Success      = true;
            }
            catch (Exception ex)
            {
                response.FamilyMember = new FamilyMemberViewModel();
                response.Success      = false;
                response.Message      = ex.Message;
            }

            return(response);
        }
        public FamilyMemberResponse Delete(Guid identifier)
        {
            FamilyMemberResponse response = new FamilyMemberResponse();

            try
            {
                FamilyMember deletedFamilyMember = unitOfWork.GetFamilyMemberRepository().Delete(identifier);

                unitOfWork.Save();

                response.FamilyMember = deletedFamilyMember.ConvertToFamilyMemberViewModel();
                response.Success      = true;
            }
            catch (Exception ex)
            {
                response.FamilyMember = new FamilyMemberViewModel();
                response.Success      = false;
                response.Message      = ex.Message;
            }

            return(response);
        }