Example #1
0
        public async Task <List <ProjectDto> > GetAllProject(int pageIndex, int pageSize, bool asc = true)
        {
            using (var projectDao = new ProjectDao())
            {
                return(await projectDao.GetAllByPageOrderAsync(pageIndex - 1, pageSize, asc).Select(m => new DTO.Master.ProjectDto()
                {
                    Id = m.Id,
                    Name = m.Name,

                    CreateTime = m.CreateTime,
                }).ToListAsync());
            }
        }
Example #2
0
 public async Task <List <ProjectDto> > GetAllProject(int pageIndex, int pageSize, bool asc = true)
 {
     using (var projectDao = new ProjectDao())
     {
         return(await projectDao.GetAllByPageOrderAsync(pageIndex - 1, pageSize, asc).Select(m => new DTO.Master.ProjectDto()
         {
             Id = m.Id,
             Name = m.Name,
             WBSCode = m.WBSCode,
             SmallaProject = m.SmallaProject,
             SmallWBSCode = m.SmallWBSCode,
             NitialApprovalFunds = m.NitialApprovalFunds,
             VoltageGrade = m.VoltageGrade,
             ProjectDepartment = m.ProjectDepartment,
             PickingPeople = m.PickingPeople,
             ContactNumber = m.ContactNumber,
             CreateTime = m.CreateTime,
         }).ToListAsync());
     }
 }