示例#1
0
        /// <summary>
        /// RemoveWishAsync todos os Wishes de um usuario
        /// </summary>
        /// <param name="UserId">Id do usuario</param>
        /// <returns>True se a operacao deu certo, False ao contrario</returns>
        public async Task <bool> RemoveAllWishesAsync(int UserId)
        {
            Task <bool> tRemoveAllWish = new Task <bool>(() => { return(_wishListRepository.RemoveAll(UserId)); });

            tRemoveAllWish.Start();
            return(await tRemoveAllWish);
        }