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, }); }
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, }); }
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, }); }