18 lines
709 B
C#
18 lines
709 B
C#
// src/Webshop.Application/Services/Admin/Interfaces/IAdminDiscountService.cs
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Webshop.Application;
|
|
using Webshop.Application.DTOs.Discounts;
|
|
|
|
namespace Webshop.Application.Services.Admin.Interfaces
|
|
{
|
|
public interface IAdminDiscountService
|
|
{
|
|
Task<ServiceResult<IEnumerable<DiscountDto>>> GetAllDiscountsAsync();
|
|
Task<ServiceResult<DiscountDto>> GetDiscountByIdAsync(Guid id);
|
|
Task<ServiceResult<DiscountDto>> CreateDiscountAsync(DiscountDto discountDto);
|
|
Task<ServiceResult> UpdateDiscountAsync(DiscountDto discountDto);
|
|
Task<ServiceResult> DeleteDiscountAsync(Guid id);
|
|
}
|
|
} |