Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public override Task Get(object parameters)
}
else
{
return SetError(((int)HttpStatusCode.NotFound).ToString(), HttpStatusCode.NotFound.ToString());
return SetError(HttpStatusCode.NotFound.ToString(HttpHelper.INT_FORMAT), HttpStatusCode.NotFound.ToString());
}
}
catch (Exception e)
Expand Down Expand Up @@ -166,7 +166,7 @@ public override Task Delete(object parameters)
}
else
{
return SetError(((int)HttpStatusCode.NotFound).ToString(), HttpStatusCode.NotFound.ToString());
return SetError(HttpStatusCode.NotFound.ToString(HttpHelper.INT_FORMAT), HttpStatusCode.NotFound.ToString());
}
}
catch (Exception e)
Expand All @@ -191,12 +191,12 @@ public override Task Put(object parameters)
{
bool gxcheck = IsRestParameter(CHECK_PARAMETER);
GxSilentTrnSdt entity = (GxSilentTrnSdt)Activator.CreateInstance(_worker.GetType(), new Object[] { _gxContext });
var entity_interface = MakeRestType(entity);
object entity_interface = MakeRestType(entity);
entity_interface = ReadRequestBodySDTObj(entity_interface.GetType());
string entityHash = entity_interface.GetType().GetProperty("Hash").GetValue(entity_interface) as string;

ReflectionHelper.CallBCMethod(_worker, LOAD_METHOD, key);
var worker_interface = MakeRestType(_worker);
object worker_interface = MakeRestType(_worker);
string currentHash = worker_interface.GetType().GetProperty("Hash").GetValue(worker_interface) as string;
if (entityHash == currentHash)
{
Expand Down Expand Up @@ -227,12 +227,12 @@ public override Task Put(object parameters)
}
else
{
return SetError(HttpStatusCode.Conflict.ToString(), _worker.trn.context.GetMessage("GXM_waschg", new object[] { this.GetType().Name }));
return SetError(HttpStatusCode.Conflict.ToString(HttpHelper.INT_FORMAT), _worker.trn.context.GetMessage("GXM_waschg", new object[] { _worker.GetName() }));
}
}
else
{
return SetError(((int)HttpStatusCode.NotFound).ToString(), HttpStatusCode.NotFound.ToString());
return SetError(HttpStatusCode.NotFound.ToString(HttpHelper.INT_FORMAT), HttpStatusCode.NotFound.ToString());
}
}
catch (Exception e)
Expand Down