public IActionResult GetAll()
        {
            var result = _debitService.GetAll();

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
Exemplo n.º 2
0
        public ActionResult GetAllDebits()
        {
            var result = _debitService.GetAll();

            return(Json(result, JsonRequestBehavior.AllowGet));
        }