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