Skip to content

Commit

Permalink
fixing reported routes (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrechka authored Sep 2, 2022
1 parent 3dae392 commit 24d9a06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Controllers/PetCardsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public async Task<ActionResult> Put(string nsStr, string localIDstr, [FromBody]
if (res)
{
Trace.TraceInformation($"Stored {ns}/{localID}");
return CreatedAtAction(nameof(Get),new { ns= ns, localID = localID },null);
return CreatedAtAction(nameof(Get),new { nsStr = ns.ToString(), localIDstr = localID.ToString() },null);
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions Controllers/PetPhotosController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public async Task<ActionResult> Put(string nsStr, string localIDstr, int imNum,
if(created)
{
Trace.TraceInformation($"successfully added photo {imNum} for {ns}/{localID}. UUID: {uuid}");
var routeValues = new { ns = ns, localID = localID, imNum = imNum };
var routeValues = new { nsStr = ns.ToString(), localIDstr = localID.ToString(), imNum = imNum };
return CreatedAtAction(nameof(GetImage), routeValues, uuid);
}
else
Expand Down Expand Up @@ -200,7 +200,7 @@ public async Task<ActionResult> Put(string nsStr, string localIDstr, int imNum,s
if (created)
{
Trace.TraceInformation($"successfully added processed ({processingIdent}) photo {imNum} for {ns}/{localID}. UUID: {orig.Uuid}");
var routeValues = new { ns = ns, localID = localID, imNum = imNum, preferableProcessingsStr = processingIdent };
var routeValues = new { nsStr = ns.ToString(), localIDstr = localID.ToString(), imNum = imNum, preferableProcessingsStr = processingIdent.ToString() };
return CreatedAtAction(nameof(GetImage), routeValues, orig.Uuid);
}
else
Expand Down

0 comments on commit 24d9a06

Please sign in to comment.