mirror of
https://github.com/PacktPublishing/Web-Development-with-Blazor-Second-Edition.git
synced 2026-04-07 23:33:53 +00:00
Initial commit
This commit is contained in:
parent
2190113c56
commit
3088165398
1765 changed files with 192085 additions and 0 deletions
20
Chapter05/MyBlog/Data.Models/Interfaces/IBlogApi.cs
Normal file
20
Chapter05/MyBlog/Data.Models/Interfaces/IBlogApi.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
namespace Data.Models.Interfaces;
|
||||
|
||||
public interface IBlogApi
|
||||
{
|
||||
Task<int> GetBlogPostCountAsync();
|
||||
Task<List<BlogPost>?> GetBlogPostsAsync(int numberofposts, int startindex);
|
||||
Task<List<Category>?> GetCategoriesAsync();
|
||||
Task<List<Tag>?> GetTagsAsync();
|
||||
Task<BlogPost?> GetBlogPostAsync(string id);
|
||||
Task<Category?> GetCategoryAsync(string id);
|
||||
Task<Tag?> GetTagAsync(string id);
|
||||
Task<BlogPost?> SaveBlogPostAsync(BlogPost item);
|
||||
Task<Category?> SaveCategoryAsync(Category item);
|
||||
Task<Tag?> SaveTagAsync(Tag item);
|
||||
Task DeleteBlogPostAsync(string id);
|
||||
Task DeleteCategoryAsync(string id);
|
||||
Task DeleteTagAsync(string id);
|
||||
Task InvalidateCacheAsync();
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue