/// <summary> /// 获取Blog收藏的数量 /// </summary> /// <param name="blogId">BlogID</param> /// <returns></returns> public async Task<int> GetFavoriteCountAsync(long blogId) { using (KoalaBlogDbContext dbContext = new KoalaBlogDbContext()) { FavoriteHandler favoriteHandler = new FavoriteHandler(dbContext); return await favoriteHandler.GetFavoriteCountAsync(blogId); } }