Ejemplo n.º 1
0
        public IHttpActionResult Watched(ToWatchListDto dto)
        {
            var userID = User.Identity.GetUserId();


            DB db = new DB();

            db.watched(Convert.ToInt32(dto.movieId), userID);

            return(Ok());
        }
Ejemplo n.º 2
0
        public IHttpActionResult ToWatch(ToWatchListDto dto)
        {
            var userID      = User.Identity.GetUserId();
            var toWatchList = new ToWatchList
            {
                userId  = userID,
                movieId = Convert.ToInt32(dto.movieId)
            };

            DB db = new DB();

            db.towatch(toWatchList);

            return(Ok());
        }