private void UpdateCardListAction(object obj) { BasicCardListDTO newList = (BasicCardListDTO)obj; if (newList != null && newList.ListId == cardList.ListId) { ReadCardList.UpdateCardList(CardList, newList); } }
public async void OnRenameCardListSubmit(IEditable model) { if (model != null && ActiveUser.IsActive == true && CardList != null) { EditCardList editList = model as EditCardList; bool succ = await CardListService.UpdateCardList(ActiveUser.Instance.LoggedUser.Token, editList.ListId, new UpdateCardListDTO(editList)); if (succ == true) { ReadCardList.UpdateCardList(cardList, editList); DestroyPanel(); } else { ShowMessageBox(null, "Error renaming card list."); } } else { ShowMessageBox(null, "Error getting user."); } }