Example #1
0
        public async Task <IActionResult> Devolver([FromBody] DevolucaoInput input)
        {
            var path   = Startup.ContentRoot;
            var result = await _agendamentoService.Devolver(input, new GeraPdf(), path);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }

            return(StatusCode(201, result.Entity));
        }