public ActionResult CheckTask(int todoId, bool doneOrNot) { bool result = false; result = todoListService.CheckTask(todoId, doneOrNot); return(Content(result.ToString())); }
public ActionResult Check(int todoId, bool doneOrNot) { todoListService.CheckTask(todoId, doneOrNot); return(Redirect(Request.UrlReferrer.ToString())); }