Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

IDownloadService.cs

using Microsoft.AspNetCore.Http;
using Nop.Core.Domain.Media;

namespace Nop.Services.Media;

/// 
/// Download service interface
/// 
public partial interface IDownloadService
{
    /// 
    /// Gets a download
    /// 
    /// Download identifier
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the download
    /// 
    Task GetDownloadByIdAsync(int downloadId);

    /// 
    /// Gets a download by GUID
    /// 
    /// Download GUID
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the download
    /// 
    Task GetDownloadByGuidAsync(Guid downloadGuid);

    /// 
    /// Deletes a download
    /// 
    /// Download
    /// A task that represents the asynchronous operation
    Task DeleteDownloadAsync(Download download);

    /// 
    /// Inserts a download
    /// 
    /// Download
    /// A task that represents the asynchronous operation
    Task InsertDownloadAsync(Download download);

    /// 
    /// Gets the download binary array
    /// 
    /// File
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the download binary array
    /// 
    Task GetDownloadBitsAsync(IFormFile file);
}