Пример #1
0
        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));
        }
Пример #2
0
        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;
 }
Пример #4
0
 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;
 }
Пример #7
0
 public void update(BANK bank)
 {
     db.Entry(bank).State = EntityState.Modified;
 }