public int Insert(T newRecord) { ValidateBeforeInsert(newRecord); var id = _repo.Insert(newRecord); ExecuteAfterSave(newRecord, false); return(id); }