public ActionResult DeleteConfirmed(int id) { FundingAmount fundingAmount = db.FundingAmounts.Find(id); db.FundingAmounts.Remove(fundingAmount); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "FundingAmountID,FundingAmountValue")] FundingAmount fundingAmount) { if (ModelState.IsValid) { db.Entry(fundingAmount).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(fundingAmount)); }
public ActionResult Create([Bind(Include = "FundingAmountID,FundingAmountValue")] FundingAmount fundingAmount) { if (ModelState.IsValid) { db.FundingAmounts.Add(fundingAmount); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(fundingAmount)); }
public void Start() { GeneralList.AddRange(GameObject.FindGameObjectsWithTag("General")); ListeningDevList.AddRange(GameObject.FindGameObjectsWithTag("ListeningDevice")); TechList.AddRange(GameObject.FindGameObjectsWithTag("Player")); TechList[0].gameObject.GetComponent <Technician>().IsActive = true; ActiveTech = TechList[0]; ActiveTechNum = 0; _fundingText = GameObject.FindGameObjectsWithTag("FundingText")[0].GetComponent <Text>(); _fundingText.text = "£" + FundingAmount.ToString("0000"); _dailyReport = UnityEngine.Object.FindObjectOfType <DailyReport>(); }
public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } FundingAmount fundingAmount = db.FundingAmounts.Find(id); if (fundingAmount == null) { return(HttpNotFound()); } return(View(fundingAmount)); }