public static string GetRole(string login) { ServiceUserClient serviceUser = new ServiceUserClient(); string role = ""; try { role = serviceUser.GetRole(login); } catch (Exception) { } finally { serviceUser.Close(); } return(role); }
/// <summary> /// Call WCF GetRole function /// </summary> /// <param name="login"></param> /// <returns></returns> public string GetRole(string login) { return(_service.GetRole(login)); }
public static string GetRole(string login) { ServiceUserClient serviceUser = new ServiceUserClient(); try { return serviceUser.GetRole(login); } catch (Exception) { return string.Empty; } }