public int Add(Election item) { try { _dBContext.Add(item); return(_dBContext.SaveChanges()); } catch (Exception E) { throw E; } }
public int Add(Voter item) { try { _dbContext.Add(item); return(_dbContext.SaveChanges()); } catch (Exception E) { throw E; } }