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

17 lines
558 B
C#
Raw Normal View History

2021-11-13 03:21:59 +00:00
using System;
using System.Collections.Generic;
using Start.Server.Models;
2021-11-16 05:53:19 +00:00
using Start.Shared;
2021-11-13 03:21:59 +00:00
namespace Start.Server.Data.Services.Interfaces {
public interface IBookmarkService {
2021-11-16 06:27:28 +00:00
public Bookmark? GetBookmark(string userId, int bookmarkId);
2021-11-13 03:21:59 +00:00
public IList<Bookmark> GetUserBookmarks(string userId);
2021-11-16 06:27:28 +00:00
public Bookmark? CreateBookmark(string userId, string title, string url,
2021-11-14 01:19:28 +00:00
string? notes, int bookmarkGroupId);
2021-11-16 06:27:28 +00:00
public Bookmark? UpdateBookmark(string userId, Bookmark bookmark);
public bool DeleteBookmark(string userId, int bookmarkId);
2021-11-13 03:21:59 +00:00
}
}