public ActionResult Confirm(int id) { var vr = new ViaggioRepository(); var trip = vr.GetById(id); trip.Approvato = true; trip.DataApprovazione = DateTime.Now; vr.Save(trip); var model = vr.GetUnapproved(); return View("List", model); }
public ActionResult List() { var vr = new ViaggioRepository(); var model = vr.GetUnapproved(); return View(model); }