public void DeleteTask(int ScheduleID, string AssemblyFileName)
    {
        // Schedule schedule = SchedulerController.GetSchedule(ScheduleID);

        if (!string.IsNullOrEmpty(AssemblyFileName))
        {
            string filepath = Path.Combine(HostingEnvironment.ApplicationPhysicalPath, "bin\\" + AssemblyFileName);
            SchedulerController.DeleteTask(ScheduleID, filepath);
        }
    }