Exemple #1
0
        public JsonResult EditTask(TaskViewModel model)
        {
            ToDoTask task = new ToDoTask()
            {
                ToDoListID   = 1,
                ToDoTaskID   = model.TaskId,
                ToDoTaskName = model.TaskName,
                SortOrder    = model.SortOrder
            };
            var updatedTask = _taskListManager.Update(task);

            return(Json(new { success = true }, JsonRequestBehavior.AllowGet));
        }