title: Error while passing object to controller with ajax mvc
body: <p>I am having object before any changes on his propoeries</p>
  
  <pre><code>var beforeChangeUser = {
       "Id": row.userId,
       "Name": row.name,
       "Surname": row.surname,
       "Rate": row.rate,
       "AccName": row.accName,
       "FixCosts": row.fixCosts,
      }
  </code></pre>
  
  <p>There is user which may have been changed some propoerties</p>
  
  <pre><code> var changedUser = {
         "Id": row.userId,
         "Name": $('#nameEdit').val(),
         "Surname": $('#surnameEdit').val(),
         "Rate": $('#rateEdit').val(),
         "AccName": $('#accountEdit').val(),
         "FixCosts": $('#fixCostsEdit').val(),
        }
  </code></pre>
  
  <p>I am comparing those two ojects to check if any changes was made</p>
  
  <pre><code>function getDiffrences(beforeChangeUser, changedUser) {
      var user = changedUser;
      var changed = false;
      if (beforeChangeUser.Name !== changedUser.Name) {
          user.Name = changedUser.Name;
          changed = true;
      }
      if (beforeChangeUser.Surname !== changedUser.Surname) {
          user.Surname = changedUser.Surname;
          changed = true;
      }
      if (beforeChangeUser.Rate !== changedUser.Rate) {
          user.Rate = changedUser.Rate;
          changed = true;
      }
      if (beforeChangeUser.AccName !== changedUser.AccName) {
          user.AccName = changedUser.AccName;
          changed = true;
      }
      if (beforeChangeUser.FixCosts !== changedUser.FixCosts) {
          user.FixCosts = changedUser.FixCosts;
          changed = true;
      }
      if (changed) {
          return user;
      } else {
          return false;
      }
  }
  </code></pre>
  
  <p>Finally there is ajax which I am trying to send data to </p>
  
  <pre><code>var userToChange = getDiffrences(beforeChangeUser, changedUser);
                                      if (userToChange == false) {
                                          errorMsg.text("You did not make any changes");
                                      } else {
                                          $.ajax({
                                              type: "POST",
                                              url: '/ManageUsersController/EditUser',
                                              data: userToChange,
                                              success: function (succ) {
  
                                              },
                                              error: function (data) {
                                              }
                                          });
                                      }
  </code></pre>
  
  <p>I am sending it to controller as below</p>
  
  <pre><code>  [HttpPost]
      public JsonResult EditUser(UserEditViewModel userToChange)
      {
          return Json(_userService.EditUser(new UserEditDTO
          {
              AccName = userToChange.AccName,
              FixCosts = userToChange.FixCosts,
              Id = Int32.Parse(userToChange.Id),
              Name = userToChange.Name,
              Rate = userToChange.Rate,
              Surname = userToChange.Surname,
          }));
      }
  </code></pre>
  
  <p>I am getting error 404 not found /ManageUsersController/EditUser</p>
  
  <p>What do I do wrong ?</p>