public ActionResult DeleteConfirmed(string id) { CurrentStockInfo currentStockInfo = db.CurrentStockInfoes.Find(id); db.CurrentStockInfoes.Remove(currentStockInfo); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Stock_Id,Symbol,PercentChange,AverageVolume,LastPrice,MarketTime,OpenPrice,HighPrice,LowPrice,YearWeekHigh,YearWeekLow,Date")] CurrentStockInfo currentStockInfo) { if (ModelState.IsValid) { db.Entry(currentStockInfo).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(currentStockInfo)); }
public ActionResult Details(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CurrentStockInfo currentStockInfo = db.CurrentStockInfoes.Find(id); if (currentStockInfo == null) { return(HttpNotFound()); } return(View(currentStockInfo)); }