Exemplo n.º 1
0
 public static TODOListElement EditElementOfList(NewEditInputModel input, TODOList tempList)
 {
     TODOListElement tempListElement = tempList.getElement(input.myID);
     tempListElement.Details = input.Details;
     tempListElement.Title = input.Title;
     return tempListElement;
 }
Exemplo n.º 2
0
        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");
        }