protected async Task OnDeleteTaskAsync()
 {
     DeleteService.TaskItem          = (TaskItem)TaskItem.Clone();
     DeleteService.DeleteMessageType = DeleteMessageType.TaskItem;
     TaskService.ResetTaskForm();
     await JS.ShowFormAsync("deleteModal");
 }
        protected async Task OnSetPlanningDateAsync(int daysToAdd)
        {
            TaskDates taskdates = new TaskDates
            {
                DaysAdditionToPlannigDate = daysToAdd,
                TaskItem = (TaskItem)TaskItem.Clone()
            };

            await TaskService.SetTaskPlanningDateAsync(taskdates);
        }
 public EditTaskWindowViewModel(TaskItem item, IEventAggregator eventAggregator)
 {
     Todo             = (TaskItem)item.Clone();
     _eventAggregator = eventAggregator;
     InitializeCommands();
 }