16 lines
667 B
C#
16 lines
667 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using LCU.Library.Internal.IncentiveApiModels.Entities;
|
|
|
|
namespace LCU.API.Internal.Operations.IncentiveApiLib.Repositories;
|
|
|
|
public interface IPayoutRepository
|
|
{
|
|
Task<int> SavePayoutLineItemAsync(PayoutLineItem lineItem);
|
|
Task SavePayoutLineItemRangeAsync(IReadOnlyCollection<PayoutLineItem> lineItems);
|
|
Task<IReadOnlyCollection<PayoutLineItem>> GetPayoutLineItemsForPeriodAsync(DateTime forPeriod);
|
|
Task<PayoutLineItem> GetPayoutLineItemById(int payoutId);
|
|
Task<IReadOnlyCollection<PayoutLineItem>> GetEmployeePayoutsForPeriod(AppUser appUser, DateTime forPeriod);
|
|
}
|