Beispiel #1
0
        public static DAL.Customer CustomerBackendToDal(Backend.Club_Member c)
        {
            DAL.Customer temp = new DAL.Customer();

            temp.dateOfBirth = c.dateOfBirth;
            temp.firstName   = c.firstName;
            temp.gender      = c.gender;
            temp.ID          = c.ID;
            temp.lastName    = c.lastName;
            temp.memberID    = c.memberID;
            temp.type        = c.type;
            return(temp);
        }
Beispiel #2
0
        ///////////////////////////////////////////////// Customer CONVERTION
        public static List <Backend.Club_Member> CustomerDalToBackendList(List <DAL.Customer> SqlDB)
        {
            List <Backend.Club_Member> list = new List <Backend.Club_Member>();

            Backend.Club_Member temp;
            foreach (DAL.Customer c in SqlDB)
            {
                temp             = new Backend.Club_Member();
                temp.dateOfBirth = c.dateOfBirth;
                temp.firstName   = c.firstName;
                temp.gender      = c.gender;
                temp.ID          = c.ID;
                temp.lastName    = c.lastName;
                temp.memberID    = c.memberID;
                temp.type        = c.type;

                list.Add(temp);
            }
            return(list);
        }