public async Task <ActionResult <CustomerView> > Put(
     [FromServices] IAplicCustomer aplicCustomer,
     int id,
     [FromBody] CustomerDto dto)
 {
     return(await aplicCustomer.Update(id, dto));
 }
 public async Task <ActionResult <CustomerView> > Delete(
     [FromServices] IAplicCustomer aplicCustomer,
     int id)
 {
     return(await aplicCustomer.Delete(id));
 }
 public async Task <ActionResult <List <CustomerView> > > GetByCpf(
     [FromServices] IAplicCustomer aplicCustomer,
     string cpf)
 {
     return(await aplicCustomer.GetByCpf(cpf));
 }
 public async Task <ActionResult <List <CustomerView> > > Get(
     [FromServices] IAplicCustomer aplicCustomer)
 {
     return(await aplicCustomer.Get());
 }
 public async Task <ActionResult <CustomerView> > Post(
     [FromServices] IAplicCustomer aplicCustomer,
     [FromBody] CustomerDto dto)
 {
     return(await aplicCustomer.Insert(dto));
 }