Ejemplo n.º 1
0
        public async Task <ActionResult> Delete(string watchlistId)
        {
            var deleteResponse = await _watchlistService.DeleteWatchlistAsync(req =>
            {
                req.UserId = UserId;
                req.WatchlistIds.Add(watchlistId);
            });

            return(RedirectToAction("Index", "Watchlist", new { deleted = !deleteResponse.IsError }));
        }