public TEntity Get(object id) { return(Data.FirstOrDefault(o => EntityUtil.GetId(o) == id)); }
public void Delete(TEntity entity) { var id = EntityUtil.GetId(entity); Data.RemoveAll(o => EntityUtil.GetId(o) == id); }