async fix
This commit is contained in:
parent
fec32f6642
commit
7843108576
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue