public List <Perfil_ListarResult> Perfil_Listar(int idEmpresa, string descripcion) { using (dmIntranetDataContext dci = new dmIntranetDataContext(ConfigurationManager.ConnectionStrings["genesys"].ConnectionString)) { try { return(dci.Perfil_Listar(descripcion, idEmpresa).ToList()); } catch (Exception ex) { dci.Excepcion_Registrar(ex.Message, ex.TargetSite.Name); throw ex; } } }
public List <Perfil_ListarResult> Perfil_Listar(int idEmpresa, string descripcion) { ////using (dmIntranetDataContext dci = new dmIntranetDataContext(ConfigurationManager.ConnectionStrings["genesys"].ConnectionString)) using (dmIntranetDataContext dci = new dmIntranetDataContext(GS.configuration.Init.GetValue(Constant.sistema, Constant.key, "genesys"))) { try { return(dci.Perfil_Listar(idEmpresa, descripcion).ToList()); } catch (Exception ex) { dci.Excepcion_Registrar(ex.Message, ex.TargetSite.Name); throw ex; } } }