public static TODOListElement EditElementOfList(NewEditInputModel input, TODOList tempList) { TODOListElement tempListElement = tempList.getElement(input.myID); tempListElement.Details = input.Details; tempListElement.Title = input.Title; return tempListElement; }
public static void SetIsDoneOnElement(NewDeleteItemInputModel input, TODOList tempList) { TODOListElement tempListElement = tempList.getElement(input.ID); tempListElement.IsDone = true; tempList.setElement(input.ID, tempListElement); }