public void Update(Friendship friendship) { MyContext.Get().Entry(friendship).State = System.Data.Entity.EntityState.Modified; MyContext.Get().SaveChanges(); }
public void Delete(Friendship friendship) { MyContext.Get().Friendships.Remove(friendship); MyContext.Get().SaveChanges(); }
public void Create(Friendship friendship) { MyContext.Get().Friendships.Add(friendship); MyContext.Get().SaveChanges(); }