Пример #1
0
 public static TapTinTacNghiepResult ToDataResult(this TapTinTacNghiep entity)
 {
     return(new TapTinTacNghiepResult
     {
         Id = entity.Id,
         TacNghiepId = entity.TacNghiepId,
         TacNghiepInfo = entity.TacNghiep.ToIfNotNullDataInfo(),
         Url = entity.Url,
         UserUploadId = entity.UserUploadId,
         UserInfo = entity.User.ToIfNotNullDataInfo(),
         CreateDate = entity.CreateDate,
         CreatedBy = entity.CreatedBy,
         IsDeleted = entity.IsDeleted,
         LastUpdated = entity.LastUpdated,
         LastUpdatedBy = entity.LastUpdatedBy
     });
 }
Пример #2
0
 public static TapTinTacNghiepResult ToIfNotNullDataResult(this TapTinTacNghiep entity)
 {
     return(entity?.ToDataResult());
 }