Esempio n. 1
0
        public ActionResult ConfirmMap()
        {
            var viewmodel = new MapaEntregaViewModel(Request);

            viewmodel.DoConfirm();
            return(RedirectToAction("Index", new { id = 0 }));
        }
Esempio n. 2
0
        public ActionResult RemoveItem()
        {
            var viewmodel = new MapaEntregaViewModel(Request);

            viewmodel.DoRemove();

            return(RedirectToAction("Index", new { id = 0 }));
        }
Esempio n. 3
0
        public ActionResult CreateOrEditMap(MapaAdapter adapter)
        {
            var viewmodel = new MapaEntregaViewModel(Request, adapter);

            viewmodel.CreateOrEditMap();

            return(RedirectToAction("Index", new { id = 0 }));
        }
Esempio n. 4
0
        public ActionResult SearchMap()
        {
            var viewmodel = new MapaEntregaViewModel(Request);
            var id        = viewmodel.DoSearch();

            if (id == 0)
            {
                ViewBag.Erro = "fds";
            }
            return(RedirectToAction("Index", new { id = id }));
        }
Esempio n. 5
0
        public ActionResult PrintMap(int id)
        {
            var viewmodel = new MapaEntregaViewModel(Request);

            return(View(viewmodel.DoPrint(id)));
        }
Esempio n. 6
0
        public ActionResult SendItemToEdit()
        {
            var viewmodel = new MapaEntregaViewModel(Request);

            return(RedirectToAction("Index", new { id = viewmodel.DoEdit() }));
        }