walt
This commit is contained in:
@@ -63,7 +63,9 @@ namespace Back.Services
|
||||
}
|
||||
public async Task<Order> GetOrder(int OrderID, int CompanyID)
|
||||
{
|
||||
return await _repoOrder.Get(w => w.ID == OrderID && w.CompanyID == CompanyID) .FirstOrDefaultAsync();
|
||||
return await _repoOrder.Get(w => w.ID == OrderID && w.CompanyID == CompanyID)
|
||||
.Include(inc=>inc.OrderItems)
|
||||
.FirstOrDefaultAsync();
|
||||
}
|
||||
public async Task<bool> UpdateOrder(Order order)
|
||||
{
|
||||
|
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