Example #1
0
        public static UserModel GetUser(CredentialsLib c)
        {
            var c2 = new RemoteCredentialsLib();

            c2.Login = c.Login;
            c2.Pass  = c.Pass;

            var cl  = new FileSyncServiceClient();
            var res = cl.GetUser(c2);

            cl.Close();

            return(res);
        }
Example #2
0
        public static UserModel GetUser(CredentialsLib c)
        {
            //var c2 = new RemoteCredentialsLib();
            //c2.Login = c.Login;
            //c2.Pass = c.Pass;

            var cl = new FileSyncServiceClient();
            var u  = cl.GetUser(c);

            cl.Close();

            var res = new UserModel(u.Login, u.Pass, u.Fullname, u.Email);

            return(res);
        }