コード例 #1
0
        public List <BookmarkModel> GetAllBookmarks(int userId)
        {
            string query = $@"SELECT BookmarkId, Name, WebAddress, FilePath, Icon, UserId 
                             FROM [Bookmark]
                             WHERE UserId = '{userId}';";

            return(_sqlDataAccess.LoadAllData <BookmarkModel>(query));
        }