public static SAAdminTool.DocsPaWR.InfoDelega[] SearchDeleghe(Page page, SearchDelegaInfo searchInfo, ref SearchPagingContext pagingContext) { SAAdminTool.DocsPaWR.InfoDelega[] deleghe = null; try { SAAdminTool.DocsPaWR.InfoUtente infoUtente = null; if (searchInfo.TipoDelega != "tutte") { infoUtente = UserManager.getInfoUtente(page); } deleghe = docsPaWS.DelegaSearch(infoUtente, searchInfo, ref pagingContext); if (deleghe == null) { throw new Exception(); } return(deleghe); } catch (Exception es) { ErrorManager.redirect(page, es); } return(deleghe); }