예제 #1
0
 public Stakeholder Edit(Stakeholder stakeholder)
 {
     db.Entry(stakeholder).State = EntityState.Modified;
     db.SaveChanges();
     return(stakeholder);
 }
예제 #2
0
 public void Remove(Stakeholder stakeholder)
 {
     db.Stakeholders.Remove(stakeholder);
     db.SaveChanges();
 }
예제 #3
0
 public Stakeholder Save(Stakeholder stakeholder)
 {
     db.Stakeholders.Add(stakeholder);
     db.SaveChanges();
     return(stakeholder);
 }