public IActionResult GetPaymentById(int id) { var result = _iPaymentManager.GetById(id); if (result == null) { return(BadRequest(new { error = "Can not found Data!!" })); } return(Ok(result)); }
public IActionResult GetById(int id) { var result = _paymentManager.GetById(id); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }