public ActionResult Edit([Bind(Include = "ReviewLogId,ASIN,WebsiteAPIId,CustomerReviewed,AutomaticValidation,AdminReviewed,DisplayReview,Rating,Email,ReviewSubject,ReviewBody,WouldBuyAgain,RecToFriend")] ReviewLog reviewLog) { if (ModelState.IsValid) { //Created new value for DateReviewed so every time user reviews //DateReviewed is updated to the days date while Selected date is not updated reviewLog.DateReviewed = DateTime.Now.Date; db.Entry(reviewLog).State = EntityState.Modified; db.Entry(reviewLog).Property("SelectedDate").IsModified = false; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(reviewLog)); }
public ActionResult CloseConfirmed(int id) { Review review = db.Reviews.Find(id); if (review == null) { return(HttpNotFound()); } review.Reviewed = true; review.ReviewDate = DateTime.Now; db.Entry(review).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); }
public void update(TENOR tenor) { db.Entry(tenor).State = EntityState.Modified; }
public void update(ERROR_LOG errorLog) { db.Entry(errorLog).State = EntityState.Modified; }
public void update(BANK_RULES bankRule) { db.Entry(bankRule).State = EntityState.Modified; }
public void update(RATE_HISTORY rateHistory) { db.Entry(rateHistory).State = EntityState.Modified; }
public void update(BANK bank) { db.Entry(bank).State = EntityState.Modified; }