async void employeeScheduler_SchedulerAppointmentActionEvent(Appointment Original, Appointment Edited, SchedulerAppointmentAction Action)
        {
            busyIndicator.IsBusy = true;
            var orifinalSource = CreateSourceObject(Original);
            var editedSource   = ConvertToCorasauEntity(Edited);
            var errorCode      = await api.Update(orifinalSource, editedSource);

            busyIndicator.IsBusy = false;
            if (errorCode != ErrorCodes.Succes)
            {
                UnicontaMessageBox.Show(errorCode.ToString(), Uniconta.ClientTools.Localization.lookup("Error"), MessageBoxButton.OK);
            }
        }
        async void employeeScheduler_StorageAppointmentActionEvent(Appointment appointment, SchedulerAppointmentAction action)
        {
            var employeeJournalLine = ConvertToCorasauEntity(appointment);

            busyIndicator.IsBusy = true;
            var result = ErrorCodes.NoSucces;

            switch (action)
            {
            case SchedulerAppointmentAction.Delete:
                result = await api.Delete(employeeJournalLine);

                break;

            case SchedulerAppointmentAction.Insert:
                result = await api.Insert(employeeJournalLine);

                break;

            case SchedulerAppointmentAction.Modify:
                if (_currentCorasauBaseEntity == null)
                {
                    return;
                }
                result = await api.Update(_currentCorasauBaseEntity, employeeJournalLine);

                break;
            }
            busyIndicator.IsBusy = false;
            if (result != ErrorCodes.Succes)
            {
                UnicontaMessageBox.Show(result.ToString(), Uniconta.ClientTools.Localization.lookup("Error"), MessageBoxButton.OK);
            }
        }