20 lines
528 B
C#
20 lines
528 B
C#
using Back.Data.Contracts;
|
|
using Back.Data.Models;
|
|
|
|
namespace Back.Services
|
|
{
|
|
public class ServWalt
|
|
{
|
|
private readonly IAsyncRepository<CreditDocuments> _repoCreditDocuments;
|
|
|
|
public ServWalt(IAsyncRepository<CreditDocuments> repoCreditDocuments)
|
|
{
|
|
_repoCreditDocuments = repoCreditDocuments;
|
|
}
|
|
public async Task<bool> AddDocument(CreditDocuments document)
|
|
{
|
|
return await _repoCreditDocuments.AddBoolResultAsync(document);
|
|
}
|
|
}
|
|
}
|