Exemplo n.º 1
0
        public ActionResult AddSubscription(Guid customerId, Guid comicBookSeriesId)
        {
            var addResult = _customers.AddCustomerSubscription(new SubscriptionSave()
            {
                ComicBookSeriesId = comicBookSeriesId,
                CustomerId        = customerId,
                UserId            = userId
            });

            return(Json(new { IsSuccess = addResult.IsSuccess, ErrorMessages = addResult.ErrorMessages }));
        }