public void Delete(int draftParticipantId) { DraftParticipant draftParticipant = _context.DraftParticipants.Find(draftParticipantId); _context.DraftParticipants.Remove(draftParticipant); _context.SaveChanges(); }
public DraftParticipant Get(int draftParticipantId) { DraftParticipant draftParticipant = _context.DraftParticipants.Find(draftParticipantId); return(draftParticipant); }
public void Update(DraftParticipant draftParticipant) { _context.DraftParticipants.Attach(draftParticipant); _context.Entry(draftParticipant).State = System.Data.Entity.EntityState.Modified; _context.SaveChanges(); }
public void Add(DraftParticipant draftParticipant) { _context.DraftParticipants.Add(draftParticipant); _context.SaveChanges(); }
public void Update(DraftParticipant draftParticipant) { _draftParticipantWorker.Update(draftParticipant); }
public void Add(DraftParticipant draftParticipant) { _draftParticipantWorker.Add(draftParticipant); }