async fix
This commit is contained in:
parent
fec32f6642
commit
7843108576
|
|
@ -114,11 +114,11 @@ namespace TIAMWebApp.Server.Controllers
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
[Route(APIUrls.GetServiceProviderByIdRouteName)]
|
[Route(APIUrls.GetServiceProviderByIdRouteName)]
|
||||||
[SignalR(SignalRTags.GetCompany)]
|
[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}");
|
_logger.Info($@"GetServiceProviderById called with id: {id}");
|
||||||
|
|
||||||
return adminDal.GetCompanyByIdAsync(id);
|
return await adminDal.GetCompanyByIdAsync(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
[NonAction]
|
[NonAction]
|
||||||
|
|
@ -486,11 +486,11 @@ namespace TIAMWebApp.Server.Controllers
|
||||||
[Route(APIUrls.GetProductByIdRouteName)]
|
[Route(APIUrls.GetProductByIdRouteName)]
|
||||||
[Tags("In-Progress", "Product")]
|
[Tags("In-Progress", "Product")]
|
||||||
[SignalR(SignalRTags.GetProductById)]
|
[SignalR(SignalRTags.GetProductById)]
|
||||||
public Task<Product?> GetProductById(Guid productId)
|
public async Task<Product?> GetProductById(Guid productId)
|
||||||
{
|
{
|
||||||
_logger.Info("GetAllProducts called");
|
_logger.Info("GetAllProducts called");
|
||||||
|
|
||||||
return adminDal.GetProductByIdAsync(productId);
|
return await adminDal.GetProductByIdAsync(productId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue