public async Task <IHttpActionResult> ListarAvaliacoesLojas([FromUri] ListarAvaliacoesLojasRQ request) { if (request == null) { return(BadRequest()); } try { Uri referrer = Request.Headers.Referrer; if (referrer != null) { string domain = referrer.GetLeftPart(UriPartial.Authority); } var token = Request.Headers.GetValues("Authorization").FirstOrDefault(); request.Authorization = token; var avaliacoes = await _avaliacaoService.ListarAvaliacoesLojas(request); return(Ok(avaliacoes)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }