walt
This commit is contained in:
19
Back/Services/ServWalt.cs
Normal file
19
Back/Services/ServWalt.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user