示例#1
0
        public async Task <ActionResult <Income> > PostIncome(Income income)
        {
            if (income == null)
            {
                return(BadRequest());
            }

            var result = await _commonRepository.AddIncomeAsync(income);

            return(CreatedAtAction("GetIncome", new { id = result.Id }, result));
        }