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 }); }
public static TapTinTacNghiepResult ToIfNotNullDataResult(this TapTinTacNghiep entity) { return(entity?.ToDataResult()); }