public async Task Insert(CadastroClienteViewModel model) { if (ClientePreExistente(model).GetAwaiter().GetResult()) { throw new Exception("CPF já associado a outro cliente"); } var cliente = _mapper.Map <CadastroClienteViewModel, Cliente>(model); await _clienteServices.Insert(cliente); }