public void AddToUserList(Movie movie, string selectedText) { var list = _entities.UserLists.Where(o => o.ListName == selectedText).FirstOrDefault(); if (list == null) { return; } var a = new MovieUserList { UserList = list, Movie = movie }; _entities.AddToMovieUserLists(a); _entities.SaveChanges(); }