Esempio n. 1
0
        public ActionResult <Property> Get(Guid Id)
        {
            Property result = cache.GetObject <Property>("property:" + Id.ToString());

            if (result == null)
            {
                result = repository.FindWithUnities(Id);
                if (result == null)
                {
                    return(NotFound());
                }
                cache.SetObject("property:" + Id.ToString(), result);
            }

            return(result);
        }