Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 2
0
 public VendaViewModel GetById(Guid id)
 {
     return(Mapper.Map <Venda, VendaViewModel>(_vendaService.GetById(id)));
 }