// GET: Home public ActionResult Index() { List <CodePair> allPairs = PairingData.GetAllCodePairs(); allPairs = allPairs.OrderBy(q => q.Count).ToList(); return(View(allPairs)); }
public ActionResult Delete() { DeleteViewModel deleteViewModel = new DeleteViewModel(); deleteViewModel.AllIndividuals = new List <Individual>(); deleteViewModel.AllIndividuals = PairingData.GetAllIndividuals(); return(View(deleteViewModel)); }
public ActionResult Create(Individual newIndivisual) { if (ModelState.IsValid) { PairingData.AddNew(newIndivisual); return(RedirectToAction("Index")); } return(View()); }
public ActionResult Edit(List <CodePair> pairs) { if (ModelState.IsValid) { PairingData.UpdateCodePairs(pairs); return(RedirectToAction("Index")); } return(View()); }
protected override void ExecuteOnCore(int coreIndex, PairingData <PartType, GlobalDataType> calculationPair) { Actors[coreIndex].CalculatePairedData(calculationPair); }
public ActionResult Edit() { List <CodePair> allPairs = PairingData.GetAllCodePairs(); return(View(allPairs)); }
public abstract void CalculatePairedData(PairingData <PartType, GlobalDataType> calculationPair);