コード例 #1
0
        public List <DTOResource> GetAll()
        {
            List <DTOResource> ResourceList = new List <DTOResource>();

            foreach (Resource item in UnitOfWork.ResourceRepository.GetAll())
            {
                ResourceList.Add(ResourceMapper.GetDTOResources(item));
            }

            return(ResourceList);
        }
コード例 #2
0
 public DTOResource GetById(int Id)
 {
     return(ResourceMapper.GetDTOResources(UnitOfWork.ResourceRepository.GetByID(Id)));
 }