// GET: DetalleTransaccion/Create public ActionResult Create() { ViewBag.ProductoId = new SelectList(_productoAppService.ObtenerTodo(), "Id", "Descripcion"); ViewBag.TransaccionId = new SelectList(_transaccionAppService.ObtenerTodo(), "Id", "Fecha"); return(View()); }
// GET: Transaccion public ActionResult Index() { var transaccionViewModel = Mapper.Map <IEnumerable <Transaccion>, IEnumerable <TransaccionViewModel> >(_transaccionAppService.ObtenerTodo()); return(View(transaccionViewModel)); }