public string GetAccessToken(ClienteLoginViewModel model) { //buscar o cliente atraves do email e senha var cliente = clienteDomainService.Get(model.Email, model.Senha); if (cliente == null) { throw new Exception("Acesso Negado. Cliente não encontrado"); } //retornando o TOKEN gerado.. return(tokenService.GenerateToken(cliente.Email)); }