public ActionResult Delete(string id) { ViewBag.Cutoffs = CutoffData.ListAll(); Cutoff cutoff = CutoffData.GetById(id); return(View(cutoff)); }
// GET: Cutoff public ActionResult Index() { List <Cutoff> model = new List <Cutoff>(); model = CutoffData.ListAll(); return(View(model)); //ViewBag.Cutoffs = CutoffData.ListAll(); //List<Cutoff> model = new List<Cutoff>(); //model = CutoffData.ListAll(); //return View(model); }
public ActionResult Add() { ViewBag.Cutoffs = CutoffData.ListAll(); return(View()); }