网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
using System.Threading.Tasks;
using Dpz.Core.Web.Dashboard.Helper;
using Dpz.Core.Web.Dashboard.Models;

namespace Dpz.Core.Web.Dashboard.Service.Impl
{
    public class AudioService:IAudioService
    {
        private readonly IHttpService _httpService;

        public AudioService(
            IHttpService httpService)
        {
            _httpService = httpService;
        }

        public async Task<IPagedList<AudioModel>> GetPageAsync(int pageIndex, int pageSize)
        {
            return await _httpService.GetPageAsync<AudioModel>("/api/Audio", pageIndex, pageSize);
        }

        public async Task DeleteAsync(string id)
        {
            await _httpService.DeleteAsync($"/api/Audio/{id}");
        }
    }
}
loading