public void Delete(int id) { HandDAL hand = db.Hands.Find(id); if (hand != null) { db.Hands.Remove(hand); } }
public void Update(HandDAL hand) { db.Entry(hand).State = EntityState.Modified; }
public void Create(HandDAL hand) { db.Hands.Add(hand); }
public void Delete(int id) { HandDAL hand = db.Hands.Find(id); if (hand != null) { db.Hands.Remove(hand); } }
public void Update(HandDAL hand) { db.Entry(hand).State = EntityState.Modified; }
public void Create(HandDAL hand) { db.Hands.Add(hand); }