title: Send Javascript Vairable To C# MVC controller
body: <p>I need to send a JavaScript variable to a certain C# controller in MVC when a link is clicked. I don't want to do it with Jquery. I need to do it with JavaScript.</p>
  
  <p>Here is The Code Of The Controller: </p>
  
  <pre><code> **[HttpPost]
          public ActionResult saveuser(int id, string propertyName, string value)
          {
              var status = false;
              var message = "";
              //Update data to database 
  
              using (PaediatricDBEntities db = new PaediatricDBEntities())
              {
                  var user = db.ShiftTypes.Find(id);
                  if (user != null)
                  {
                      db.Entry(user).Property(propertyName).CurrentValue = value;
                      db.SaveChanges();
                      status = true;
                  }
                  else
                  {
                      message = "Error!";
                  }
              }
              var response = new { value = value, status = status, message = message };
              JObject o = JObject.FromObject(response);
              return Content(o.ToString());
          }**
  </code></pre>
  
  <p>I need to send 3 parameters to this controller via javascript, first is the id of the element, second is the property name of the element, 3rd is the value of the element.Thanks,</p>