public static bool LoginIn(CredentialsLib c) { //var c2 = new RemoteCredentialsLib(); //c2.Login = c.Login; //c2.Pass = c.Pass; var cl = new FileSyncServiceClient(); var res = cl.LoginIn(c); cl.Close(); return(res); }
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); }
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); }
public static void Add(UserModel u) { //var u2 = new RemoteUserModel(); //u2.Login = u.Login; //u2.Pass = u.Pass; //u2.Email = u.Email; //u2.Fullname = u.Fullname; //u2.Id = u.Id; //u2.Lastlogin = u.Lastlogin; //u2.Machines = u.Machines; var cl = new FileSyncServiceClient(); cl.AddUser(u); cl.Close(); }