コード例 #1
0
        public ResourceDTO Get(int id)
        {
            Resource Resource;

            using (var uow = _uowfactory.CreateUnitOfWork())
            {
                var repo = uow.GetRepo <Resource>();
                Resource = repo.Get(id);
            }
            ResourceDTO dto = ResourceMapper.CreateResourceDTO().Map(Resource);

            return(dto);
        }