Exemple #1
0
        public async Task <ActionResult> AddToCollectionAsync(int FilmId)
        {
            try
            {
                var userId = HttpContext.GetCurrentUserId();
                await _FilmsService.AddFilmToUsersCollection(FilmId, userId);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }