示例#1
0
        public ActionResult CheckTask(int todoId, bool doneOrNot)
        {
            bool result = false;

            result = todoListService.CheckTask(todoId, doneOrNot);
            return(Content(result.ToString()));
        }
示例#2
0
        public ActionResult Check(int todoId, bool doneOrNot)
        {
            todoListService.CheckTask(todoId, doneOrNot);

            return(Redirect(Request.UrlReferrer.ToString()));
        }