Beispiel #1
0
 public void Update(Advert advert)
 {
     _context.Entry(advert).State = EntityState.Modified;
     _context.SaveChanges();
 }
 public Comment AddComment(Comment comment)
 {
     _context.Comments.Add(comment);
     _context.SaveChanges();
     return(comment);
 }