fix
This commit is contained in:
parent
c58f48512c
commit
b917b3d09f
|
|
@ -240,18 +240,13 @@ namespace TIAMWebApp.Server.Controllers
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Route(APIUrls.GetCarsForUserProductMappingRouteName + "/{userProductMappingId}")]
|
[Route(APIUrls.GetCarsForUserProductMappingRouteName + "/{userProductMappingId}")]
|
||||||
[SignalR(SignalRTags.GetCarsForUserProductMapping)]
|
[SignalR(SignalRTags.GetCarsForUserProductMapping)]
|
||||||
public async Task<Dictionary<Guid, string>> GetCarsForUserProductMapping(string userProductMappingId)
|
public async Task<List<Car>> GetCarsForUserProductMapping(string userProductMappingId)
|
||||||
{
|
{
|
||||||
_logger.Info($@"GetCarsForUserProductMapping called with userProductMappingId: {userProductMappingId}");
|
_logger.Info($@"GetCarsForUserProductMapping called with userProductMappingId: {userProductMappingId}");
|
||||||
|
|
||||||
var userProductMappingDictionary = new Dictionary<Guid, string>();
|
var cars = adminDal.GetCarByUserProductMappingId(Guid.Parse(userProductMappingId));
|
||||||
|
|
||||||
var serviceProviders = adminDal.GetCarByUserProductMappingId(Guid.Parse(userProductMappingId));
|
return cars;
|
||||||
|
|
||||||
var myServiceproviders = serviceProviders.Where(x => x.Id == Guid.Parse(userProductMappingId)).ToDictionary(x => x.Id, x => x.Name);
|
|
||||||
//put serviceprovider id and name into a dictionary
|
|
||||||
|
|
||||||
return myServiceproviders;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue