BlazorStart/Start/Server/Data/Services/Interfaces/IBookmarkService.cs

16 lines
599 B
C#
Raw Permalink Normal View History

using System.Collections.Generic;
using System.Threading.Tasks;
2021-11-13 03:21:59 +00:00
using Start.Server.Models;
namespace Start.Server.Data.Services.Interfaces {
public interface IBookmarkService {
public Task<Bookmark?> GetBookmark(string userId, int bookmarkId);
public Task<IList<Bookmark>> GetUserBookmarks(string userId);
2021-11-13 03:21:59 +00:00
public Task<Bookmark?> CreateBookmark(string userId, string title, string url,
2022-04-19 20:04:38 +00:00
string? notes, int sortOrder, int bookmarkGroupId);
public Task<Bookmark?> UpdateBookmark(string userId, Bookmark bookmark);
public Task<bool> DeleteBookmark(string userId, int bookmarkId);
2021-11-13 03:21:59 +00:00
}
}