コード例 #1
0
ファイル: EditItemEndPoint.cs プロジェクト: rvrtex/TODOTowers
 public static TODOListElement EditElementOfList(NewEditInputModel input, TODOList tempList)
 {
     TODOListElement tempListElement = tempList.getElement(input.myID);
     tempListElement.Details = input.Details;
     tempListElement.Title = input.Title;
     return tempListElement;
 }
コード例 #2
0
ファイル: EditItemEndPoint.cs プロジェクト: rvrtex/TODOTowers
        public FubuContinuation post_Save_Edit(NewEditInputModel input)
        {
            TODOList tempList = _ss.Get<TODOList>("_theList");
            TODOListElement tempListElement = EditElementOfList(input, tempList);
            tempList.setElement(input.myID, tempListElement);
            _ss.Set<TODOList>("_theList", tempList);

            return FubuContinuation.RedirectTo<HomeEndpoint>(x => x.Index(), "GET");
        }