Пример #1
0
 public List <Empresa_ListarResult> Empresa_Listar(int id_empresa, string detalle)
 {
     ////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.Empresa_Listar(id_empresa, detalle).ToList());
         }
         catch (ChangeConflictException ex)
         {
             dci.Excepcion_Registrar(ex.Message, ex.TargetSite.Name);
             dci.SubmitChanges();
             throw ex;
         }
     }
 }