public static RegisteredUser GetRegisterUser(string userName) { IWFAdminService svc = Common.GetAdminAPI(); RegisteredUser registerUser = null; try { registerUser = svc.GetRegisterUser(userName); } catch (Exception ex) { } return(registerUser); }