예제 #1
0
        public async Task <bool> AddAsync(MovieItem item)
        {
            try
            {
                await DatabaseRepository.Current.InsertAsync(item);

                WatchlistChanged?.Invoke(this, item);

                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #2
0
        public async Task <bool> RemoveAsync(MovieItem item)
        {
            try
            {
                await DatabaseRepository.Current.DeleteAsync(entity : item);

                WatchlistChanged?.Invoke(this, item);

                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }