Example #1
0
        public virtual async Task <ResultModel <T> > GetAsync(Guid entityId)
        {
            var result = new ResultModel <T>();

            if (InMemoryEntities.ContainsKey(entityId))
            {
                result.Value = InMemoryEntities[entityId];
                if (result.Value.IsDeleted)
                {
                    result.AddInfo("The entity is deleted");
                }
            }
            return(result);
        }