Exemplo n.º 1
0
        private Projman.Server.User ConvertToServer(User user)
        {
            var u = new Projman.Server.User
            {
                FirstName = user.firstName,
                LastName  = user.lastName,
                Id        = user.id,
                Login     = user.login,
                Password  = user.password,
                Role      = user.role
            };

            return(u);
        }
Exemplo n.º 2
0
        private User ConvertToClient(Projman.Server.User user)
        {
            User u = new User
            {
                id        = user.Id,
                firstName = user.FirstName,
                lastName  = user.LastName,
                login     = user.Login,
                password  = user.Password,
                role      = user.Role
            };

            return(u);
        }