예제 #1
0
        public async Task <IActionResult> Create(string id, [FromBody] ProviderFingerprintCreateModel model)
        {
            if (string.IsNullOrWhiteSpace(id))
            {
                return(BadRequest());
            }

            if (!ModelState.IsValid)
            {
                return(BadModelResponse(ModelState));
            }

            return(Ok(await _providerManager.CreateFingerprint(id, model)));
        }