BlazorStart/Start/Server/Data/Services/Interfaces/IBookmarkService.cs
2021-11-15 21:53:19 -08:00

17 lines
622 B
C#

using System;
using System.Collections.Generic;
using Start.Server.Models;
using Start.Shared;
namespace Start.Server.Data.Services.Interfaces {
public interface IBookmarkService {
public (BookmarkStatus, Bookmark?) GetBookmark(string userId, int bookmarkId);
public IList<Bookmark> GetUserBookmarks(string userId);
public (BookmarkStatus, Bookmark?) CreateBookmark(string userId, string title, string url,
string? notes, int bookmarkGroupId);
public (BookmarkStatus, Bookmark?) UpdateBookmark(string userId, Bookmark bookmark);
public BookmarkStatus DeleteBookmark(string userId, int bookmarkId);
}
}