public async Task <ActionResult <bool> > CheckImage([FromBody] Models.Repository repository) { try { return(await _containerService.CheckImageAsync(repository)); } catch (InvalidRepositoryName ex) { return(BadRequest(ex.Message)); } catch (AmazonECRException ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } }