title: The parameters dictionary contains a null entry for parameter (ASP.NET)
body: <p>I have method to add data to db on Aajax request</p>
  
  <p>Here is code on back-end</p>
  
  <pre><code>   public ActionResult AddingInternalAppointment(string Start, string End, string Title, DateTime Date,int id)
      {
  
          using (var ctx = new ApplicationDbContext())
          {
  
              Appointment appointmentInt = new Appointment()
              {
                  Start_appointment = Start,
                  End_appointment = End,
                  Title = Title,
                  Type_of_appointment = "Internal",
                  Date = Date
              };
              ctx.Appointments.Add(appointmentInt);
              ctx.SaveChanges();
              return Json(new {Result = "Success", Message = "Saved Successfully"});
          }
      }
  </code></pre>
  
  <p>And here is AJAX request on front - end:</p>
  
  <pre><code>function addAppointmentInternal() {
      var idofdoctor = moment($('#startAppointment').val()).toISOString();
      alert(idofdoctor);
      $.ajax({
          type: 'Post',
          dataType: 'Json',
          data: {
              Start: $('#startAppointment').val(),
              End: $('#endAppointment').val(),
              Title: $('#title').val(),
              Date: moment($('#startAppointment').val()).toISOString()
          },
          url: '@Url.Action("AddingInternalAppointment","Calendar")',
          success: function (da) {
              if (da.Result === "Success") {
                  $('#calendar').fullCalendar('refetchEvents');
                  $("#myModal2").modal();
              } else {
                  alert('Error' + da.Message);
              }
          },
          error: function(da) {
              alert('Error');
          }
      });
  }
  </code></pre>
  
  <p>When I call this function it show me this error, but I have values in Date. </p>
  
  <p>How I can fix this?</p>
  
  <p><a href="https://i.stack.imgur.com/xkwhu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xkwhu.png" alt="enter image description here"></a></p>