Esempio n. 1
0
 public bool Put(int id, [FromBody] UpdateCardListDTO cardList)
 {
     if (cardList != null)
     {
         return(service.UpdateCardList(id, cardList, User.Identity.Name));
     }
     return(false);
 }
Esempio n. 2
0
        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.");
            }
        }