Example #1
0
 public void Update(Conversation conversation)
 {
     MyContext.Get().Entry(conversation).State = System.Data.Entity.EntityState.Modified;
     MyContext.Get().SaveChanges();
 }
Example #2
0
 public void Delete(Conversation conversation)
 {
     MyContext.Get().Conversations.Remove(conversation);
     MyContext.Get().SaveChanges();
 }
Example #3
0
 public void Create(Conversation conversation)
 {
     MyContext.Get().Conversations.Add(conversation);
     MyContext.Get().SaveChanges();
 }