public IActionResult Add(DebitForAddDto debitForAddDto) { var result = debitService.Add(debitForAddDto); if (result.Success) { return(CreatedAtAction("GetById", new { id = result.Data }, result.Message)); } return(BadRequest(result.Message)); }
public IActionResult Add(Debit debit) { var result = _debitService.Add(debit); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public ActionResult AddDebitType(Debit debit) { var result = _debitService.Add(debit); return(Json(result)); }