public async Task <IReadOnlyCollection <BalanceOperationModel> > GetBalanceOperationsAsync(DateTime startDate, DateTime endDate, int limit) { IReadOnlyCollection <BalanceOperation> balanceOperations = await _balanceOperationService.GetAsync(startDate, endDate, limit); return(Mapper.Map <List <BalanceOperationModel> >(balanceOperations)); }
public async Task <IReadOnlyCollection <BalanceOperationModel> > GetBalanceOperationsAsync(DateTime startDate, DateTime endDate, int limit, string assetId, BalanceOperationType type) { var modelType = Mapper.Map <Domain.BalanceOperationType>(type); IReadOnlyCollection <Domain.BalanceOperation> balanceOperations = await _balanceOperationService.GetAsync(startDate, endDate, limit, assetId, modelType); return(Mapper.Map <List <BalanceOperationModel> >(balanceOperations)); }