public ActionResult Write(Review review) { var viewOf = ViewTapping(ViewStates.CreatePost, review); //GetDropDowns(review); AddNecessaryFields(review); ModelState.Remove("CreatedDate"); review.CreatedDate = DateTime.Now; if (ModelState.IsValid) { db.Reviews.Add(review); var state = SaveDatabase(ViewStates.Create, review); if (state) { _logics.AfterReviewIsSavedFixRatingNReviewCountInApp(review, true, db); _logics.ForceAppReviewToLoad(review.AppID); AppVar.SetSavedStatus(ViewBag, _createdSaved); // Saved Successfully. } return(Json(new { isDone = true, msg = "Successful." }, JsonRequestBehavior.AllowGet)); // return true; } return(Json(new { isDone = false, msg = "failed." }, JsonRequestBehavior.AllowGet)); // return true; }