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