예제 #1
0
 public static CongViecPhoiHopResult ToDataResult(this CongViec_PhoiHop entity)
 {
     return(new CongViecPhoiHopResult
     {
         Id = entity.Id,
         HoSoCongViec = entity.HoSoCongViec.ToDataInfo(),
         HoSoCongViecId = entity.HoSoCongViecId,
         UserInfo = entity.User.ToDataInfo(),
         UserId = entity.UserId,
         CreateDate = entity.CreateDate,
         CreatedBy = entity.CreatedBy,
         IsDeleted = entity.IsDeleted,
         LastUpdated = entity.LastUpdated,
         LastUpdatedBy = entity.LastUpdatedBy
     });
 }
예제 #2
0
 public static CongViecPhoiHopResult ToIfNotNullDataResult(this CongViec_PhoiHop entity)
 {
     return(entity?.ToDataResult());
 }