public ActionResult ConfirmMap() { var viewmodel = new MapaEntregaViewModel(Request); viewmodel.DoConfirm(); return(RedirectToAction("Index", new { id = 0 })); }
public ActionResult RemoveItem() { var viewmodel = new MapaEntregaViewModel(Request); viewmodel.DoRemove(); return(RedirectToAction("Index", new { id = 0 })); }
public ActionResult CreateOrEditMap(MapaAdapter adapter) { var viewmodel = new MapaEntregaViewModel(Request, adapter); viewmodel.CreateOrEditMap(); return(RedirectToAction("Index", new { id = 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 })); }
public ActionResult PrintMap(int id) { var viewmodel = new MapaEntregaViewModel(Request); return(View(viewmodel.DoPrint(id))); }
public ActionResult SendItemToEdit() { var viewmodel = new MapaEntregaViewModel(Request); return(RedirectToAction("Index", new { id = viewmodel.DoEdit() })); }