public static TapTinCongViecResult ToDataResult(this TapTinCongViec entity) { return(new TapTinCongViecResult { Id = entity.Id, HoSoCongViecId = entity.HoSoCongViecId, HoSoCongViecInfo = entity.HoSoCongViec.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 }); }
public static TapTinCongViecResult ToIfNotNullDataResult(this TapTinCongViec entity) { return(entity?.ToDataResult()); }