@@ -128,7 +128,7 @@ public override Task Get(object parameters)
128128 }
129129 else
130130 {
131- return SetError ( ( ( int ) HttpStatusCode . NotFound ) . ToString ( ) , HttpStatusCode . NotFound . ToString ( ) ) ;
131+ return SetError ( HttpStatusCode . NotFound . ToString ( HttpHelper . INT_FORMAT ) , HttpStatusCode . NotFound . ToString ( ) ) ;
132132 }
133133 }
134134 catch ( Exception e )
@@ -166,7 +166,7 @@ public override Task Delete(object parameters)
166166 }
167167 else
168168 {
169- return SetError ( ( ( int ) HttpStatusCode . NotFound ) . ToString ( ) , HttpStatusCode . NotFound . ToString ( ) ) ;
169+ return SetError ( HttpStatusCode . NotFound . ToString ( HttpHelper . INT_FORMAT ) , HttpStatusCode . NotFound . ToString ( ) ) ;
170170 }
171171 }
172172 catch ( Exception e )
@@ -191,12 +191,12 @@ public override Task Put(object parameters)
191191 {
192192 bool gxcheck = IsRestParameter ( CHECK_PARAMETER ) ;
193193 GxSilentTrnSdt entity = ( GxSilentTrnSdt ) Activator . CreateInstance ( _worker . GetType ( ) , new Object [ ] { _gxContext } ) ;
194- var entity_interface = MakeRestType ( entity ) ;
194+ object entity_interface = MakeRestType ( entity ) ;
195195 entity_interface = ReadRequestBodySDTObj ( entity_interface . GetType ( ) ) ;
196196 string entityHash = entity_interface . GetType ( ) . GetProperty ( "Hash" ) . GetValue ( entity_interface ) as string ;
197197
198198 ReflectionHelper . CallBCMethod ( _worker , LOAD_METHOD , key ) ;
199- var worker_interface = MakeRestType ( _worker ) ;
199+ object worker_interface = MakeRestType ( _worker ) ;
200200 string currentHash = worker_interface . GetType ( ) . GetProperty ( "Hash" ) . GetValue ( worker_interface ) as string ;
201201 if ( entityHash == currentHash )
202202 {
@@ -227,12 +227,12 @@ public override Task Put(object parameters)
227227 }
228228 else
229229 {
230- return SetError ( HttpStatusCode . Conflict . ToString ( ) , _worker . trn . context . GetMessage ( "GXM_waschg" , new object [ ] { this . GetType ( ) . Name } ) ) ;
230+ return SetError ( HttpStatusCode . Conflict . ToString ( HttpHelper . INT_FORMAT ) , _worker . trn . context . GetMessage ( "GXM_waschg" , new object [ ] { _worker . GetName ( ) } ) ) ;
231231 }
232232 }
233233 else
234234 {
235- return SetError ( ( ( int ) HttpStatusCode . NotFound ) . ToString ( ) , HttpStatusCode . NotFound . ToString ( ) ) ;
235+ return SetError ( HttpStatusCode . NotFound . ToString ( HttpHelper . INT_FORMAT ) , HttpStatusCode . NotFound . ToString ( ) ) ;
236236 }
237237 }
238238 catch ( Exception e )
0 commit comments