Beispiel #1
0
 public static CongViecVanBanResult ToDataResult(this CongViec_VanBan entity)
 {
     return(new CongViecVanBanResult
     {
         Id = entity.Id,
         HoSoCongViecId = entity.HoSoCongViecId,
         HoSoCongViec = entity.HoSoCongViec.ToDataInfo(),
         SoVanBan = entity.SoVanBan,
         CoQuanId = entity.CoQuanId,
         CoQuanIfo = entity.CoQuan.ToDataInfo(),
         NgayBanHanh = entity.NgayBanHanh,
         NoiDung = entity.NoiDung,
         IsDeleted = entity.IsDeleted,
         CreateDate = entity.CreateDate,
         CreatedBy = entity.CreatedBy,
         LastUpdatedBy = entity.LastUpdatedBy,
         LastUpdated = entity.LastUpdated
     });
 }
Beispiel #2
0
 public static CongViecVanBanResult ToIfNotNullDataResult(this CongViec_VanBan entity)
 {
     return(entity?.ToDataResult());
 }