private async Task Create(CreateOrEditClienteDto input)
        {
            var cliente = ObjectMapper.Map <Cliente>(input);



            await _clienteRepository.InsertAsync(cliente);
        }
 public async Task CreateOrEdit(CreateOrEditClienteDto input)
 {
     if (input.Id == null)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
        private async Task Update(CreateOrEditClienteDto input)
        {
            var cliente = await _clienteRepository.FirstOrDefaultAsync((long)input.Id);

            ObjectMapper.Map(input, cliente);
        }