示例#1
0
 // GET: OrdenPago/Create
 public ActionResult Create()
 {
     ViewBag.Sucursales = new SelectList(_sucursalAppService.ListarTodos(), "Id", "Nombre");
     ViewBag.Monedas    = new SelectList(_monedaAppService.ListarTodos(), "Id", "Nombre");
     ViewBag.Estados    = new SelectList(_estadoAppService.ListarTodos(), "Id", "Nombre");
     return(View());
 }
示例#2
0
        // GET: Sucursal
        public ActionResult Index()
        {
            var sucursalModel = Mapper.Map <IEnumerable <Sucursal>, IEnumerable <SucursalModel> >(_sucursalAppService.ListarTodos());

            return(View(sucursalModel));
        }