public ActionResult Edit([Bind(Include = "Id,Symbol,Type,CatalystDate,CatelystNotes,LastMoidfiedDate,Price,MarketCapital")] FdaCalendar fdaCalendar) { if (ModelState.IsValid) { db.Entry(fdaCalendar).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(fdaCalendar)); }
public ActionResult Edit([Bind(Include = "Id,PortfolioId,PortfolioName,Symbol,DisplayOrder,LastModifiedDate")] MyPortfolioStock myPortfolioStock) { var profileId = new Guid(User.Identity.GetUserId()); if (ModelState.IsValid) { db.Entry(myPortfolioStock).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(myPortfolioStock)); }
public ActionResult Edit([Bind(Include = "Id,Name,Description,DisplayOrder,LastModifiedDate")] MyPortfolio myPortfolio) { myPortfolio.LastModifiedDate = DateTime.Now; myPortfolio.ProfileId = new Guid(User.Identity.GetUserId()); if (ModelState.IsValid) { db.Entry(myPortfolio).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(myPortfolio)); }