adminproduct
This commit is contained in:
@@ -2,16 +2,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application;
|
||||
using Webshop.Application.DTOs.Products;
|
||||
|
||||
namespace Webshop.Application.Services.Admin.Interfaces
|
||||
{
|
||||
public interface IAdminProductService
|
||||
{
|
||||
Task<IEnumerable<AdminProductDto>> GetAllAdminProductsAsync();
|
||||
Task<AdminProductDto?> GetAdminProductByIdAsync(Guid id);
|
||||
Task<AdminProductDto?> CreateAdminProductAsync(CreateAdminProductDto productDto); // << DTO-TYP GEÄNDERT >>
|
||||
Task<bool> UpdateAdminProductAsync(UpdateAdminProductDto productDto); // << DTO-TYP GEÄNDERT >>
|
||||
Task<bool> DeleteAdminProductAsync(Guid id);
|
||||
Task<ServiceResult<IEnumerable<AdminProductDto>>> GetAllAdminProductsAsync();
|
||||
Task<ServiceResult<AdminProductDto>> GetAdminProductByIdAsync(Guid id);
|
||||
Task<ServiceResult<AdminProductDto>> CreateAdminProductAsync(CreateAdminProductDto productDto);
|
||||
Task<ServiceResult> UpdateAdminProductAsync(UpdateAdminProductDto productDto);
|
||||
Task<ServiceResult> DeleteAdminProductAsync(Guid id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user