public IActionResult GetAll() { var result = _debitService.GetAll(); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public ActionResult GetAllDebits() { var result = _debitService.GetAll(); return(Json(result, JsonRequestBehavior.AllowGet)); }