예제 #1
0
        public object PostCalculateRates([FromBody] RateDto rate)
        {
            object response = string.Empty;

            try
            {
                response = rateService.Calculate(rate);
            }
            catch (Exception ex)
            {
                response = ex.ToString();
            }

            return(response);
        }