Skip to content

Commit 26c3665

Browse files
claudiamurialdoBeta Bot
authored and
Beta Bot
committed
Cherry pick branch 'genexuslabs:fix/rest-context-timezone' into beta
1 parent e585016 commit 26c3665

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXRestServices.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@ internal void Initialize()
102102
return internalSDT;
103103
}
104104
}
105-
protected void LoadCollection<X, T>(GxGenericCollection<X> restModel, GXBaseCollection<T> internalModel) where T : GxUserType, new()
105+
protected GXBaseCollection<T> ToInternalModel<X, T>(GxGenericCollection<X> restModel) where T : GxUserType, new()
106106
where X : new()
107107
{
108+
GXBaseCollection<T> internalModel = new GXBaseCollection<T>();
108109
if (restModel != null)
109110
{
110111
restModel.LoadCollection(internalModel);
@@ -114,7 +115,9 @@ internal void Initialize()
114115
item.context = context;
115116
}
116117
}
118+
return internalModel;
117119
}
120+
118121
protected void Cleanup()
119122
{
120123
if (runAsMain)

0 commit comments

Comments
 (0)