Ejemplo n.º 1
0
        public async Task <IActionResult> PostAsync([FromBody] Order request)
        {
            try
            {
                var response = await _taxRateService.GetOrderTax(request);

                return(ProcessResponse(response));
            }
            catch //(Exception ex)
            {
                //Add loggin functionality here to log the stack trace for support purposes  ex
                return(StatusCode(StatusCodes.Status500InternalServerError, "Server Error"));
            }
        }