public IActionResult GetExpenseByID(int id) { if (id < 0) { BadRequest(); } var expense = _ExpensesRepo.GetExpenseByID(id); return(Ok(expense)); }