BlazorStart/Start/Server/Data/Services/Interfaces/IBookmarkService.cs
2021-11-28 22:32:21 -08:00

16 lines
584 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
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);
public Task<Bookmark?> CreateBookmark(string userId, string title, string url,
string? notes, int bookmarkGroupId);
public Task<Bookmark?> UpdateBookmark(string userId, Bookmark bookmark);
public Task<bool> DeleteBookmark(string userId, int bookmarkId);
}
}