public ActionResult Edit(int id, TweetVM collection)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    Tweet t = new Tweet()
                    {
                        Tweet_Id = id,
                        UserId   = collection.UserId,
                        message  = collection.message,
                        created  = DateTime.Now
                    };

                    obj.UpdateTweet(t);
                    return(RedirectToAction("Index"));
                }
                else
                {
                    return(View());
                }
            }
            catch (Exception Ex)
            {
                Logger.WriteError(Ex, "Edit", "Home");
                return(View("Error"));
            }
        }
 public JsonResult UpdateTweet(TWEET tweet)
 {
     tweet.user_id = Session["UserId"].ToString();
     tweet.created = DateTime.Now;
     tweetObj.UpdateTweet(tweet);
     return(Json("", JsonRequestBehavior.AllowGet));
 }