示例#1
0
        public IEnumerable <WeatherForecast> Get()
        {
            var getFee     = AppSettingManager.Fetch("fees");
            var getCharges = TransactionEngine.GetCharges(49599);
            var rng        = new Random();

            return(Enumerable.Range(1, 5).Select(index => new WeatherForecast
            {
                Date = DateTime.Now.AddDays(index),
                TemperatureC = rng.Next(-20, 55),
                Summary = Summaries[rng.Next(Summaries.Length)]
            })
                   .ToArray());
        }
        public IActionResult GetCHarges(decimal Amount)
        {
            var Transaction = TransactionEngine.GetCharges(Amount);

            return((Transaction.status) ? Ok(Transaction) : Ok(Transaction));
        }