discounts überarbeitet
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application; // << NEU: F<>r ServiceResult >>
|
||||
using Webshop.Application.DTOs.Discounts;
|
||||
|
||||
namespace Webshop.Application.Services.Admin.Interfaces
|
||||
@@ -10,8 +11,8 @@ namespace Webshop.Application.Services.Admin.Interfaces
|
||||
{
|
||||
Task<IEnumerable<DiscountDto>> GetAllDiscountsAsync();
|
||||
Task<DiscountDto?> GetDiscountByIdAsync(Guid id);
|
||||
Task<DiscountDto?> CreateDiscountAsync(DiscountDto discountDto);
|
||||
Task<bool> UpdateDiscountAsync(DiscountDto discountDto);
|
||||
Task<bool> DeleteDiscountAsync(Guid id);
|
||||
Task<ServiceResult<DiscountDto>> CreateDiscountAsync(DiscountDto discountDto);
|
||||
Task<ServiceResult> UpdateDiscountAsync(DiscountDto discountDto);
|
||||
Task<ServiceResult> DeleteDiscountAsync(Guid id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user