public List <ConversationMember> FindAll() { return(MyContext.Get().Members.ToList()); }
public void Delete(ConversationMember member) { MyContext.Get().Members.Remove(member); MyContext.Get().SaveChanges(); }
public void Create(ConversationMember member) { MyContext.Get().Members.Add(member); MyContext.Get().SaveChanges(); }
public void Update(ConversationMember member) { MyContext.Get().Entry(member).State = System.Data.Entity.EntityState.Modified; MyContext.Get().SaveChanges(); }
public ConversationMember FindById(int Id) { //return this.context.People.Where(x => x.Id == id).FirstOrDefault(); return(MyContext.Get().Members.Find(Id)); }