コード例 #1
0
        public TDto GetById(int id)
        {
            var entity = recipeContext.Find <TEntity>(id);

            if (entity == null)
            {
                return(null);
            }

            return(mapper.Map <TDto>(entity));
        }