public IHttpActionResult Watched(ToWatchListDto dto) { var userID = User.Identity.GetUserId(); DB db = new DB(); db.watched(Convert.ToInt32(dto.movieId), userID); return(Ok()); }
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()); }