예제 #1
0
 public static BaiTestTuyenDungDTO FromEntity(BaiTestTuyenDung item)
 {
     return(new BaiTestTuyenDungDTO()
     {
         Id = item.Id,
         DiemPass = item.DiemPass,
         BaiTuyenDung = item.BaiTuyenDung != null?BaiTuyenDungDTO.FromEntity(item.BaiTuyenDung) : null,
                            BaiThi = item.BaiThi != null?BaiThiDTO.FromEntity(item.BaiThi) : null,
     });
 }
예제 #2
0
 public static KetQuaBaiThiDTO FromEntity(KetQuaBaiThi item)
 {
     return(new KetQuaBaiThiDTO()
     {
         Id = item.Id,
         BaiThiId = item.BaiThiId,
         NgayCham = item.NgayCham,
         TongDiemCham = item.TongDiemCham,
         TongDiemToiDa = item.TongDiemToiDa,
         BaiThi = item.BaiThi != null?BaiThiDTO.FromEntity(item.BaiThi) : null,
     });
 }
예제 #3
0
 public static ChiTietBaiThiDTO FromEntity(ChiTietBaiThi item)
 {
     return(new ChiTietBaiThiDTO()
     {
         Id = item.Id,
         BaiThiId = item.BaiThiId,
         CauHoiId = item.CauHoiId,
         CauTraLoi = item.CauTraLoi,
         DiemCham = item.DiemCham,
         BaiThi = item.BaiThi != null?BaiThiDTO.FromEntity(item.BaiThi) : null,
                      CauHoi = item.CauHoi != null?CauHoiDTO.FromEntity(item.CauHoi) : null,
     });
 }