//Restituisce la lista delle deleghe assegnate da un dato utente public static SAAdminTool.DocsPaWR.InfoDelega[] GetListaDeleghe(Page page, string tipoDelega, string statoDelega, string idAmm, out int numDeleghe) { numDeleghe = 0; SAAdminTool.DocsPaWR.InfoDelega[] deleghe = null; try { SAAdminTool.DocsPaWR.InfoUtente infoUtente = null; if (tipoDelega != "tutte") { infoUtente = UserManager.getInfoUtente(page); } deleghe = docsPaWS.DelegaGetLista(infoUtente, tipoDelega, statoDelega, idAmm, out numDeleghe); if (deleghe == null) { throw new Exception(); } return(deleghe); } catch (Exception es) { ErrorManager.redirect(page, es); } return(deleghe); }