async fix

This commit is contained in:
Loretta 2024-06-24 14:04:11 +02:00
parent fec32f6642
commit 7843108576
1 changed files with 4 additions and 4 deletions

View File

@ -114,11 +114,11 @@ namespace TIAMWebApp.Server.Controllers
[HttpPost]
[Route(APIUrls.GetServiceProviderByIdRouteName)]
[SignalR(SignalRTags.GetCompany)]
public Task<Company?> GetServiceProviderById([FromBody] Guid id)
public async Task<Company?> GetServiceProviderById([FromBody] Guid id)
{
_logger.Info($@"GetServiceProviderById called with id: {id}");
return adminDal.GetCompanyByIdAsync(id);
return await adminDal.GetCompanyByIdAsync(id);
}
[NonAction]
@ -486,11 +486,11 @@ namespace TIAMWebApp.Server.Controllers
[Route(APIUrls.GetProductByIdRouteName)]
[Tags("In-Progress", "Product")]
[SignalR(SignalRTags.GetProductById)]
public Task<Product?> GetProductById(Guid productId)
public async Task<Product?> GetProductById(Guid productId)
{
_logger.Info("GetAllProducts called");
return adminDal.GetProductByIdAsync(productId);
return await adminDal.GetProductByIdAsync(productId);
}