/// <summary> /// Obtiene todos los elementos de la tabla (Capa de Negocio) /// </summary> /// <param name=''></param> public static List <Profile> GetAllProfile() { ProfilesDAL profileDAL = null; List <Profile> listProfile = null; profileDAL = new ProfilesDAL(); try { try { listProfile = profileDAL.SelectAll(CommonENT.MYCTSDBSECURITY_CONNECTION); } catch (Exception ex) { new EventsManager.EventsManager(ex, EventsManager.EventsManager.OrigenError.BaseDeDatos); listProfile = profileDAL.SelectAll(CommonENT.MYCTSDBSECURITYBACKUP_CONNECTION); } } catch (Exception ex) { listProfile = null; throw ex; } finally { profileDAL = null; } return(listProfile); }