public FubuContinuation get_delete_element_ID(NewDeleteItemInputModel input) { TODOList tempList = _ss.Get<TODOList>("_theList"); SetIsDoneOnElement(input, tempList); _ss.Set<TODOList>("_theList", tempList); return FubuContinuation.RedirectTo<HomeEndpoint>(x => x.Index(), "GET"); // return AjaxContinuation.Successful(); }
public static void SetIsDoneOnElement(NewDeleteItemInputModel input, TODOList tempList) { TODOListElement tempListElement = tempList.getElement(input.ID); tempListElement.IsDone = true; tempList.setElement(input.ID, tempListElement); }