public static SYS_CompanyUser SelectCompanyUserInfo(Guid userId) { SYS_CompanyUser result = null; using (var client = new UserAccountClient()) { var serviceResult = client.SelectCompanyUserInfo(userId); serviceResult.ThrowIfException(true); result = serviceResult.Result; return(result); } }
public static async Task <SYS_CompanyUser> GetCompanyUserInfo(Guid userId) { SYS_CompanyUser result = null; using (var client = new UserAccountClient()) { var serviceResult = await client.SelectCompanyUserInfoAsync(userId); serviceResult.ThrowIfException(true); result = serviceResult.Result; } return(result); }