Beispiel #1
0
 public void Noticia_Eliminar(int idNoticia, int idUsuarioModificar)
 {
     ////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.Noticia_Eliminar(idNoticia, idUsuarioModificar);
         }
         catch (Exception ex)
         {
             dci.Excepcion_Registrar(ex.Message, ex.TargetSite.Name);
             throw ex;
         }
         finally
         {
             dci.SubmitChanges();
         }
     }
 }