示例#1
0
 public static QuyenDuAnDTO FromEntity(QuyenDuAn item)
 {
     return(new QuyenDuAnDTO()
     {
         Id = item.Id,
         DuAnId = item.DuAnId,
         DuAn = item.DuAn != null?DuAnDTO.FromEntity(item.DuAn) : null,
                    QuyenId = item.QuyenId,
                    Quyen = item.Quyen != null?QuyenDTO.FromEntity(item.Quyen) : null,
                                ThanhVienDuAn = item.ThanhVienDuAn?.Select(ThanhVienDuAnDTO.FromEntity),
     });
 }
示例#2
0
 public static TrangThaiDuAnDTO FromEntity(TrangThaiDuAn item)
 {
     return(new TrangThaiDuAnDTO()
     {
         Id = item.Id,
         DuAnId = item.DuAnId,
         DuAn = item.DuAn != null?DuAnDTO.FromEntity(item.DuAn) : null,
                    TrangThaiId = item.TrangThaiId,
                    TrangThai = item.TrangThai != null?TrangThaiDTO.FromEntity(item.TrangThai) : null,
                                    ThoiGianTao = item.ThoiGianTao,
     });
 }