Ejemplo n.º 1
0
        public async Task <ActionResult <object> > GetSold24()
        {
            decimal sold24 = 0;

            try
            {
                sold24 = await TxUtils.GetSoldCorn24h(_dbContext);
            }
            catch
            {
            }

            return(new
            {
                sold24,
                available = Math.Abs(TxController.SELL_CORN_CAP_24H - sold24)
            });
        }