public IActionResult Delete(long id) { bool result = false; try { result = expenseBL.DeleteExpense(id); if (result == false) { return(NotFound()); } } catch (Exception e) { Console.WriteLine("Exception in getting Get category by id", e); } return(new NoContentResult()); }