public JsonResult _SaveScheduledTask(string taskType)
        {
            var taskModel = createScheduletedTask(taskType);

            // update the model
            TryUpdateModel((dynamic)taskModel);
            taskModel.ModifiedBy = User.Identity.Name;

            if (taskModel.Id == -1)
            {
                _service.CreateScheduledTask(taskModel);
            }
            else
            {
                _service.UpdateScheduledTask(taskModel.Id, taskModel);
            }

            return(Json(taskModel, JsonRequestBehavior.AllowGet));
        }