public void InsertСandidate(Сandidate candidate) { context.Сandidate.Add(candidate); }
public void UpdateСandidate(Сandidate candidate) { context.Entry(candidate).State = EntityState.Modified; }