public void DeleteComentario(int id)
 {
     var context = new ArticuloDbContext();
     Comentario Model = context.Comentarios.Find(id);
     context.Comentarios.Remove(Model);
     context.SaveChanges();
 }
 public void Delete(int Id)
 {
     var context = new ArticuloDbContext();
     Articulo Model = context.Articulos.Find(Id);
     context.Articulos.Remove(Model);
     context.SaveChanges();
 }
 public void EditComentario(Comentario Model)
 {
     var context = new ArticuloDbContext();
     context.Entry(Model).State = EntityState.Modified;
     context.SaveChanges();
 }
 public void CreateComentario(Entities.Comentario Model)
 {
     var context = new ArticuloDbContext();
     context.Comentarios.Add(Model);
     context.SaveChanges();
 }
 public void Create(Entities.Articulo Model)
 {
     var context = new ArticuloDbContext();
     context.Articulos.Add(Model);
     context.SaveChanges();
 }