Ejemplo n.º 1
0
        public static void Mapto4(this customer c, customerDTO c1)
        {
            c.id          = c1.id;
            c.name        = c1.name;
            c.email       = c1.email;
            c.phoneNumber = c1.phoneNumber;

            c.password     = c1.password;
            c.accessToken  = c1.accessToken;
            c.accesExpire  = c1.accesExpire;
            c.refreshToken = c1.refreshToken;
        }
Ejemplo n.º 2
0
        public static customer toCustomer(this customerDTO c1)
        {
            return(new customer()
            {
                id = c1.id,
                name = c1.name,
                email = c1.email,
                phoneNumber = c1.phoneNumber,

                password = c1.password,
                accessToken = c1.accessToken,
                accesExpire = c1.accesExpire,
                refreshToken = c1.refreshToken
            });
        }