public UserFollowersVM(User_FollowersDTO row) { Id_User_Followers = row.Id_User_Followers; User_Id = row.User_Id; Follower_Id = row.Follower_Id; Date_Of_Started = row.Date_Of_Started; Its_Still = row.Its_Still; }
public ActionResult DeactivateFollow(int userId) { User_FollowersDTO user = new User_FollowersDTO(); using (Db db = new Db()) { user = db.User_Followers.FirstOrDefault(x => x.User_Id == userId); user.Its_Still = false; db.SaveChanges(); } return(RedirectToAction("My", new { mode = 3 })); }