Ejemplo n.º 1
0
 public Boolean AgregarAutor(Autor _autor)
 {
     try
     {
         _NoticieroDbContext.autor.Add(_autor);
         _NoticieroDbContext.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
 public Boolean AgregarNoticia(Noticia _noticia)
 {
     try
     {
         _NoticieroDbContext.noticia.Add(_noticia);
         _NoticieroDbContext.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }