adress
This commit is contained in:
@@ -2,18 +2,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application;
|
||||
using Webshop.Application.DTOs.Customers;
|
||||
|
||||
namespace Webshop.Application.Services.Customers
|
||||
{
|
||||
public interface IAddressService
|
||||
{
|
||||
Task<IEnumerable<AddressDto>> GetMyAddressesAsync(string userId);
|
||||
Task<AddressDto?> GetMyAddressByIdAsync(Guid addressId, string userId);
|
||||
Task<(AddressDto? CreatedAddress, string? ErrorMessage)> CreateAddressAsync(CreateAddressDto addressDto, string userId);
|
||||
Task<(bool Success, string? ErrorMessage)> UpdateAddressAsync(UpdateAddressDto addressDto, string userId);
|
||||
Task<(bool Success, string? ErrorMessage)> DeleteAddressAsync(Guid addressId, string userId);
|
||||
Task<(bool Success, string? ErrorMessage)> SetDefaultShippingAddressAsync(Guid addressId, string userId);
|
||||
Task<(bool Success, string? ErrorMessage)> SetDefaultBillingAddressAsync(Guid addressId, string userId);
|
||||
Task<ServiceResult<IEnumerable<AddressDto>>> GetMyAddressesAsync(string userId);
|
||||
Task<ServiceResult<AddressDto>> GetMyAddressByIdAsync(Guid addressId, string userId);
|
||||
Task<ServiceResult<AddressDto>> CreateAddressAsync(CreateAddressDto addressDto, string userId);
|
||||
Task<ServiceResult> UpdateAddressAsync(UpdateAddressDto addressDto, string userId);
|
||||
Task<ServiceResult> DeleteAddressAsync(Guid addressId, string userId);
|
||||
Task<ServiceResult> SetDefaultShippingAddressAsync(Guid addressId, string userId);
|
||||
Task<ServiceResult> SetDefaultBillingAddressAsync(Guid addressId, string userId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user