public T Get(string id) { var model = _cache?.Find(id); if (model != null) { return(model); } return(_lite.FindById(id)); }
public virtual T Get(int id) { T item = null; item = _cache?.Find(id.ToString()); if (item != null) { return(item); } item = _dbSet.Find(id); return(item); }