Ejemplo n.º 1
0
 public bool GuardarDB(tb_LogError_Info info)
 {
     try
     {
         return(odata.GuardarDB(info));
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 2
0
 public bool GuardarDB(tb_LogError_Info info)
 {
     try
     {
         using (Entities_general Context = new Entities_general())
         {
             Context.tb_LogError.Add(new tb_LogError
             {
                 Clase          = info.Clase,
                 Descripcion    = info.Descripcion,
                 Fecha          = DateTime.Now,
                 IdUsuario      = info.IdUsuario,
                 Metodo         = info.Metodo,
                 InnerException = info.InnerException
             });
             Context.SaveChanges();
         }
         return(true);
     }
     catch (Exception)
     {
         throw;
     }
 }