public static bool Connect(string login, string pwd) { ServiceUserClient serviceUser = new ServiceUserClient(); try { return serviceUser.Connect(login, pwd); } catch (Exception) { return false; } }
/// <summary> /// Call WCF Connect function /// </summary> /// <param name="login"></param> /// <param name="password"></param> /// <returns></returns> public bool Connect(string login, string password) { return(_service.Connect(login, password)); }