Ejemplo n.º 1
0
        public HttpResponse RemoveFromCollection(int cardId)
        {
            if (!IsUserSignedIn())
            {
                return(this.Redirect("/Users/Login"));
            }
            var userId = this.GetUserId();

            cardsService.RemoveFromCollection(cardId, userId);
            return(this.Redirect("/Cards/Collection"));
        }