コード例 #1
0
        public async Task <ActionResult <DebtModelRead> > GetDebtModel()
        {
            InternalIncreaseModel dbmodel = await _db.GetInternalDebtInfo();

            //TODO:add automapper
            DebtModelRead model = new DebtModelRead {
                Day = dbmodel.Time, Debt = dbmodel.Debt, Increase = dbmodel.Increase
            };

            if (model is not null)
            {
                return(Ok(model));
            }
            else
            {
                return(NotFound());
            }
        }