示例#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));
 }