public async Task <IActionResult> OnPostDeleteScheduleTask(string taskId)
        {
            var userProfile = await cookieService.GetCurrentUser();

            var sortedList = await scheduleService.DeleteFromSchedule(taskId, userProfile);

            if (sortedList != null)
            {
                return(new JsonResult(new { Message = JsonResponse.Success.ToString(), Sorted = sortedList }));
            }
            return(new JsonResult(new { Message = JsonResponse.Failed.ToString() }));
        }