Пример #1
0
        public IActionResult GetProximoCodigoFornecedor()
        {
            var service = new FornecedorService(this.db, this.configuration);

            try
            {
                return(Ok(service.getProximoCodigo()));
            }
            catch (Exception ex)
            {
                ModelState.AddModelError(string.Empty, ex.Message);
                return(BadRequest(ModelState));
            }
        }