コード例 #1
0
        public ProjectStandingbookDto GetProject(long id)
        {
            var entity = repository.GetStandingbook(id);
            var dto    = entity.ProjectedAs <ProjectStandingbookDto>();

            if (dto == null)
            {
                return(dto);
            }
            dto.CostOut    = repository.GetCostouts(id).ProjectedAsCollection <ProjectCostOutDto>();
            dto.CostIn     = repository.GetCostins(id).ProjectedAsCollection <ProjectCostInDto>();
            dto.AboutFiles = repository.AboutFiless(id).ProjectedAsCollection <ProjectAboutFileDto>();

            return(dto);
        }