public async Task <ActionResult <DebtPaymentView> > Delete( [FromServices] IAplicDebtPayment aplicDebtPayment, int id) { return(await aplicDebtPayment.Delete(id)); }
public async Task <ActionResult <List <DebtPaymentView> > > GetByCustomer( [FromServices] IAplicDebtPayment aplicDebtPayment, string cpf) { return(await aplicDebtPayment.GetByCustomer(cpf)); }
public async Task <ActionResult <List <DebtPaymentView> > > GetByDebt( [FromServices] IAplicDebtPayment aplicDebtPayment, int id) { return(await aplicDebtPayment.GetByDebt(id)); }
public async Task <ActionResult <DebtPaymentView> > Post( [FromServices] IAplicDebtPayment aplicDebtPayment, [FromBody] DebtPaymentDto dto) { return(await aplicDebtPayment.Insert(dto)); }