Example #1
0
 public void Empresa_Registrar(int id_empresa, decimal provision, int comision)
 {
     ////using (dmIntranetDataContext dci = new dmIntranetDataContext(ConfigurationManager.ConnectionStrings["genesys"].ConnectionString))
     using (dmIntranetDataContext dci = new dmIntranetDataContext(GS.configuration.Init.GetValue(Constant.sistema, Constant.key, "genesys")))
     {
         try
         {
             dci.Empresa_Registrar(id_empresa, provision, comision);
         }
         catch (ChangeConflictException ex)
         {
             dci.Excepcion_Registrar(ex.Message, ex.TargetSite.Name);
             dci.SubmitChanges();
             throw ex;
         }
     }
 }