示例#1
0
 public async Task <IActionResult> Get(int id)
 {
     if (!_expensesRepository.ExistsByCashAccountId(id))
     {
         return(null);
     }
     else
     {
         var expenses = _expensesRepository.GetExpensesForView(id);
         return(new JsonResult(expenses));
     }
 }