Exemple #1
0
 public void Update(PostEntity post)
 {
     context.Entry(post).State = EntityState.Modified;
     context.SaveChanges();
 }
Exemple #2
0
 public void Edit(StudentEntity student)
 {
     context.Entry(student).State = EntityState.Modified;
     context.SaveChanges();
 }
Exemple #3
0
 public void Edit(CommentEntity comment)
 {
     context.Entry(comment).State = EntityState.Modified;
     context.SaveChanges();
 }