Esempio n. 1
0
        public User GetById(int id)
        {
            if (id < 0)
            {
                throw new Exception();
            }
            var result = memoryCache.AddOrGetExisting("GET_BY_ID", dBOperations.GetById(id), cacheItemPolicy);

            return((User)result);
        }
 public virtual User GetById(int id)
 {
     return(dBOperations.GetById(id));
 }