AssetManager.API/AssetManager.Services/IPortfolioService.cs

14 lines
666 B
C#

using AssetManager.Models.DTOs;
namespace AssetManager.Services;
public interface IPortfolioService
{
CreatePortfolioResponse CreatePortfolio(CreatePortfolioRequest request, string userId);
List<PortfolioListItem> GetPortfolios(string userId);
TotalAssetsResponse GetTotalAssets(string userId);
PortfolioDetailResponse GetPortfolioById(string id, string userId);
Task<PortfolioDetailResponse> GetPortfolioByIdAsync(string id, string userId);
GetTransactionsResponse GetTransactions(string portfolioId, string userId, int limit, int offset);
CreateTransactionResponse CreateTransaction(CreateTransactionRequest request, string userId);
}