Example #1
0
        public bandmembersDAO SingleMember(BandMembers _SingleMemberToMap)
        {
            bandmembersDAO MemberToReturn = new bandmembersDAO();

            {
                bandmembersDAO _memberToView = new bandmembersDAO();
                _memberToView.BandMembers_ID = _SingleMemberToMap.BandMembers_ID;
                _memberToView.MemberName     = _SingleMemberToMap.MemberName;
                _memberToView.MemberBio      = _SingleMemberToMap.MemberBio;
                _memberToView.DateOfBirth    = _SingleMemberToMap.DateOfBirth;
                _memberToView.BirthLocation  = _SingleMemberToMap.BirthLocation;
                MemberToReturn = _memberToView;
            }
            return(MemberToReturn);
        }
Example #2
0
        public BandMembers SelectMember(bandmembersDAO _SelectMemberToMap)
        {
            BandMembers MemberToReturn = new BandMembers();

            {
                BandMembers _memberToView = new BandMembers();
                _memberToView.BandMembers_ID = _SelectMemberToMap.BandMembers_ID;
                _memberToView.MemberName     = _SelectMemberToMap.MemberName;
                _memberToView.MemberBio      = _SelectMemberToMap.MemberBio;
                _memberToView.DateOfBirth    = _SelectMemberToMap.DateOfBirth;
                _memberToView.BirthLocation  = _SelectMemberToMap.BirthLocation;
                MemberToReturn = _memberToView;
            }
            return(MemberToReturn);
        }
Example #3
0
        public List <BandMembers> MemeberMap(List <bandmembersDAO> _memberListToMap)
        {
            List <BandMembers> _memberListToReturn = new List <BandMembers>();

            foreach (bandmembersDAO _memberToMap in _memberListToMap)
            {
                BandMembers _memberToView = new BandMembers();
                _memberToView.BandMembers_ID = _memberToMap.BandMembers_ID;
                _memberToView.MemberName     = _memberToMap.MemberName;
                _memberToView.MemberBio      = _memberToMap.MemberBio;
                _memberToView.DateOfBirth    = _memberToMap.DateOfBirth;
                _memberToView.BirthLocation  = _memberToMap.BirthLocation;
                _memberListToReturn.Add(_memberToView);
            }
            return(_memberListToReturn);
        }
Example #4
0
 public BandMembersViewModel()
 {
     SingleMember = new BandMembers();
     MembersList  = new List <BandMembers>();
 }