public async Task <IActionResult> ExpectId([FromBody] ExpectIdExtIdInput expectIdInput) { var output = await _service.ExpectIdCall(expectIdInput); if (!output.Success) { return(BadRequest(new ExtIdResponse("EXPECTIDERR001", output.Error, HttpStatusCode.BadRequest, "ValidationError"))); } return(Ok(output)); }
public async Task <IActionResult> ExpectId([FromBody] ExpectIdInput expectIdInput) { var output = await _service.ExpectIdCall(expectIdInput); if (!output.Success) { //return Conflict(new B2CResponse() { UserMessage = output.Error }); return(BadRequest(new ResponseContent("CONTOSOERR001", output.Error, HttpStatusCode.BadRequest, "ValidationError"))); } return(Ok(output)); }
public async Task <IActionResult> ExpectId([FromBody] ExpectIdInput expectIdInput) { var output = await _service.ExpectIdCall(expectIdInput); if (!output.Success) { return(Conflict(new B2CResponse() { UserMessage = "Your identity could not be verified based on the details you provided." })); } return(Ok(output)); }