Exemplo n.º 1
0
 public async void RenameCardList(CardListDTO cardList, string newName, string token)
 {
     try
     {
         CheckToken(token);
         var cl = MapperBroker.GetCardListFromDTO(cardList);
         await repository.CardListInteraction.RenameCardListAsync(cl, newName);
         await CommitAndSendCallbackAsync();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
 public async void AddCardToCardList(CardListDTO cardList, CardDTO card, string token)
 {
     try
     {
         CheckToken(token);
         var cl = MapperBroker.GetCardListFromDTO(cardList);
         var c  = MapperBroker.GetCardFromDTO(card);
         await repository.CardListInteraction.AddCardToCardListAsync(cl, c);
         await CommitAndSendCallbackAsync();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 3
0
 public async void AddCardListToBoard(BoardDTO board, CardListDTO cardList, string token)
 {
     try
     {
         CheckToken(token);
         var b  = MapperBroker.GetBoardFromDTO(board);
         var cl = MapperBroker.GetCardListFromDTO(cardList);
         await repository.BoardInteraction.AddCardListToBoardAsync(b, cl);
         await CommitAndSendCallbackAsync();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }