public ActionResult AvaliarVendedor(int?id) { if (id == null) { return(NotFound()); } var vendas = _vendaService.GetById((int)id); if (vendas == null) { return(NotFound()); } ViewBag.Status = StatusVenda.GetStatusVenda(); ViewBag.FormaPagamento = FormaPagamento.GetFormaPagamento(); return(View(Mapper.Map <Venda, VendaViewModel>(vendas))); }
public VendaViewModel GetById(Guid id) { return(Mapper.Map <Venda, VendaViewModel>(_vendaService.GetById(id))); }