Example #1
0
 public static QuanHuyenDTO FromEntity(QuanHuyen item)
 {
     return(new QuanHuyenDTO()
     {
         Id = item.Id,
         TenQuanHuyen = item.TenQuanHuyen,
         XaPhuong = item.XaPhuong?.Select(XaPhuongDTO.FromEntity),
         TinhThanh = item.TinhThanh != null?TinhThanhDTO.FromEntity(item.TinhThanh) : null,
     });
 }
Example #2
0
 //public IEnumerable<DanhGiaChungUngVienDTO> DanhGiaChungUngVien { get; set; }
 //public IEnumerable<KyNangUngVienDTO> KyNangUngVien { get; set; }
 //public IEnumerable<UngTuyenDTO> UngTuyen { get; set; }
 //public IEnumerable<UngVienLamBaiTestDTO> UngVienLamBaiTest { get; set; }
 public static UngVienDTO FromEntity(UngVien item)
 {
     return(new UngVienDTO()
     {
         Id = item.Id,
         TinhThanhId = item.TinhThanhId,
         TrangThaiId = item.TrangThaiId,
         QuanHuyenId = item.QuanHuyenId,
         XaPhuongId = item.XaPhuongId,
         TruongDaiHocId = item.TruongDaiHocId,
         HoTen = item.HoTen,
         NgaySinh = item.NgaySinh,
         Sdt = item.Sdt,
         Account = item.Account,
         Email = item.Email,
         Cmtnd = item.Cmtnd,
         DiaChi = item.DiaChi,
         LinkAnhCaNhan = item.LinkAnhCaNhan,
         LinkAnhMatTruoc = item.LinkAnhMatTruoc,
         LinkAnhMatSau = item.LinkAnhMatSau,
         BietQuaFaceBook = item.BietQuaFaceBook,
         BietQuaWeb = item.BietQuaWeb,
         BietQuaGioiThieu = item.BietQuaGioiThieu,
         TenNguoiGioiThieu = item.TenNguoiGioiThieu,
         LinkFaceBook = item.LinkFaceBook,
         LinkSkype = item.LinkSkype,
         LinkZalo = item.LinkZalo,
         DaDienDu = item.DaDienDu,
         TenKhoa = item.TenKhoa,
         NamThu = item.NamThu,
         TinhThanh = item.TinhThanh != null?TinhThanhDTO.FromEntity(item.TinhThanh) : null,
                         TruongDaiHoc = item.TruongDaiHoc != null?TruongDaiHocDTO.FromEntity(item.TruongDaiHoc) : null,
                                            QuanHuyen = item.QuanHuyen != null?QuanHuyenDTO.FromEntity(item.QuanHuyen) : null,
                                                            XaPhuong = item.XaPhuong != null?XaPhuongDTO.FromEntity(item.XaPhuong) : null,
                                                                           //ThanhVienDuAn = item.ThanhVienDuAn?.Select(ThanhVienDuAnDTO.FromEntity),
                                                                           //CVUngVien = item.CVUngVien?.Select(CVUngVienDTO.FromEntity),
                                                                           TrangThai = item.TrangThai != null?TrangThaiDTO.FromEntity(item.TrangThai) : null,
                                                                                           //DanhGiaChungUngVien = item.DanhGiaChungUngVien?.Select(DanhGiaChungUngVienDTO.FromEntity),
                                                                                           //KyNangUngVien = item.KyNangUngVien?.Select(KyNangUngVienDTO.FromEntity),
                                                                                           //UngTuyen = item.UngTuyen?.Select(UngTuyenDTO.FromEntity),
                                                                                           //UngVienLamBaiTest = item.UngVienLamBaiTest?.Select(UngVienLamBaiTestDTO.FromEntity),
     });
 }