mending contract
This commit is contained in:
parent
e4d61fba24
commit
19b32940ec
2 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ app.MapGet("/validate", async (
|
|||
return Results.StatusCode((int)response.StatusCode);
|
||||
|
||||
var content = await response.Content.ReadAsStringAsync();
|
||||
return Results.Ok(content.Contains("\"member_found\":true,"));
|
||||
return content.Contains("\"member_found\":true,") ? Results.Ok() : Results.NotFound();
|
||||
})
|
||||
.WithName("ValidateMember");
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace Registration.API.Controllers
|
|||
}
|
||||
else
|
||||
{
|
||||
return NoContent();
|
||||
return NotFound();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue