public CGUserModel GetUserByUserName(string userName) { using (UserManagementServiceClient proxy = new UserManagementServiceClient()) { UserManagementServiceReference.CGUser serviceUser = proxy.GetCGUserByUserName(userName); Models.CGUserModel clientUser = CGUserModelConverter.ConvertFromServiceUserToClientUser(serviceUser); return(clientUser); } }