Source code of the tutorial is available for download.

C#
@Html.DayPilotCalendar("dp", new DayPilotCalendarConfig
{
BackendUrl = Url.Action("Backend", "Calendar"),
// ...
EventMoveHandling = EventMoveHandlingType.Notify
})
VB
@Html.DayPilotCalendar("dp", New DayPilotCalendarConfig With
{
.BackendUrl = Url.Action("Backend", "Calendar"),
' ...
.EventMoveHandling = EventMoveHandlingType.Notify
})C#
protected override void OnEventMove(EventMoveArgs e)
{
var item = (from ev in dc.Events where ev.Id == Convert.ToInt32(e.Id) select ev).First();
if (item != null)
{
item.Start = e.NewStart;
item.End = e.NewEnd;
dc.SubmitChanges();
}
}VB
Protected Overrides Sub OnEventMove(ByVal e As EventMoveArgs)
Dim item = ( _
From ev In dc.Events _
Where ev.Id = Convert.ToInt32(e.Id) _
Select ev).First()
If item IsNot Nothing Then
item.Start = e.NewStart
item.End = e.NewEnd
dc.SubmitChanges()
End If
End Sub