public List <DTOResource> GetAll() { List <DTOResource> ResourceList = new List <DTOResource>(); foreach (Resource item in UnitOfWork.ResourceRepository.GetAll()) { ResourceList.Add(ResourceMapper.GetDTOResources(item)); } return(ResourceList); }
public DTOResource GetById(int Id) { return(ResourceMapper.GetDTOResources(UnitOfWork.ResourceRepository.GetByID(Id))); }