Exemple #1
0
        public async Task <IActionResult> CreateSignatureRequest([FromBody] SignatureRequest model)
        {
            if (!ModelState.IsValid)
            {
                throw new SignatureException("Not valid data to signature", System.Net.HttpStatusCode.BadRequest);
            }
            await _signatureService.CreateSignatureRequest(model, CurrentUser.Id);

            return(Ok());
        }