Пример #1
0
 public TEntity Get(object id)
 {
     return(Data.FirstOrDefault(o => EntityUtil.GetId(o) == id));
 }
Пример #2
0
        public void Delete(TEntity entity)
        {
            var id = EntityUtil.GetId(entity);

            Data.RemoveAll(o => EntityUtil.GetId(o) == id);
        }