public ActionResult Vendas() { var userId = new Guid(User.FindFirstValue(ClaimTypes.NameIdentifier)); var vendas = _vendaService.GetBySeller(userId); if (vendas == null) { return(NotFound()); } ViewBag.Avaliacao = _vendaService.RateById(userId).ToString().Replace(',', '.'); ViewBag.Status = StatusVenda.GetStatusVenda(); ViewBag.FormaPagamento = FormaPagamento.GetFormaPagamento(); return(View(Mapper.Map <IEnumerable <Venda>, IEnumerable <VendaViewModel> >(vendas))); }