public ActionResult ChangePersonalInfo_Post(UserInfo user)
 {
     if (ModelState.IsValid)
     {
         _entities.Entry(user).State = EntityState.Modified;
         _entities.SaveChanges();
         return(RedirectToAction("DashBoardforMyProfile", new { id = user.Id }));
     }
     return(View(user));
 }
        public ActionResult FeatureTrue(int id)
        {
            PostAd postAd = _entities.PostAds.Find(id);

            postAd.Status = "active";
            _entities.Entry(postAd).State = EntityState.Modified;
            _entities.SaveChanges();
            return(RedirectToAction("Home", "Admin"));
        }