16 lines
542 B
C#
16 lines
542 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using LCU.API.Internal.RepoApi.Repos.Models;
|
|
|
|
namespace LCU.API.Internal.RepoApi.Repos.Repositories
|
|
{
|
|
public interface ICollateralRepository
|
|
{
|
|
Task<IEnumerable<Collateral>> ListAllAsync();
|
|
Task<Collateral> AddAsync(Collateral collateral);
|
|
Task<Collateral> FindByIdAsync(int id);
|
|
Task<IEnumerable<Collateral>> FindByRepoIdAsync(int repoId);
|
|
void Update(Collateral collateral);
|
|
void Remove(Collateral collateral);
|
|
}
|
|
} |