コード例 #1
0
 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();
 }
コード例 #2
0
 public static void SetIsDoneOnElement(NewDeleteItemInputModel input, TODOList tempList)
 {
     TODOListElement tempListElement = tempList.getElement(input.ID);
     tempListElement.IsDone = true;
     tempList.setElement(input.ID, tempListElement);
 }