Example #1
0
        public async Task <ActionResult <Result> > PhotoVerify([FromServices] IBioIdClient bioId, [FromBody] PhotoVerifyImages images)
        {
            (Result result, int statusCode, string response) = await bioId.PhotoVerifyAsync(images);

            if (result == null)
            {
                return(StatusCode(statusCode, response));
            }
            return(result);
        }
Example #2
0
 public async Task <ActionResult <BioIdToken> > Token([FromServices] IBioIdClient bioId)
 {
     try
     {
         return(await bioId.getTokenAsync()); // might be null. Handle?
     }
     catch (Exception)
     {
         return(StatusCode(500));
     }
 }