예제 #1
0
 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));
 }
예제 #2
0
        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));
        }
예제 #3
0
 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));
 }