Skip to content

Commit

Permalink
Cherry pick branch 'genexuslabs:rest-service-as-controller' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiamurialdo authored and Beta Bot committed Jan 7, 2025
1 parent 521c942 commit 6748080
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected ActionResult UploadImpl()
SetStatusCode(HttpStatusCode.Created);
return GetResponse(new {object_id = fileToken});
}
protected void ErrorCheck(IGxSilentTrn trn)
protected ActionResult ErrorCheck(IGxSilentTrn trn)
{
if (trn.Errors() == 1)
{
Expand All @@ -146,6 +146,10 @@ protected void ErrorCheck(IGxSilentTrn trn)
_errorDetail = HandleError(HttpContext, HttpStatusCode.BadRequest.ToString(HttpHelper.INT_FORMAT), msgItem.gxTpr_Description);
}
}
if (_errorDetail == null)
return NoContent();
else
return GetResponse(_errorDetail);

}
protected void SetMessages(msglist messages)
Expand Down

0 comments on commit 6748080

Please sign in to comment.