diff --git a/TIAM.Models/Dtos/Users/UserDtoDetail.cs b/TIAM.Models/Dtos/Users/UserDtoDetail.cs
index 528c1e7e..de26feb5 100644
--- a/TIAM.Models/Dtos/Users/UserDtoDetail.cs
+++ b/TIAM.Models/Dtos/Users/UserDtoDetail.cs
@@ -1,10 +1,17 @@
-using AyCode.Interfaces;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.Text.Json.Serialization;
+using AyCode.Interfaces;
using TIAM.Entities.Users;
namespace TIAM.Models.Dtos.Users
{
public class UserDtoDetail : UserDto, IUserDtoDetail
{
+ [NotMapped]
+ [JsonIgnore]
+ [Newtonsoft.Json.JsonIgnore]
+ public string? FullName => Profile.FullName;
+
public string? PhoneNumber { get; set; }
public string? RefreshToken { get; set; }
public Guid? RefferalId { get; set; }
diff --git a/TIAMSharedUI/Pages/User/SysAdmins/UserProductMappingGridComponent.razor b/TIAMSharedUI/Pages/User/SysAdmins/UserProductMappingGridComponent.razor
index 5ae522ef..7a4425a4 100644
--- a/TIAMSharedUI/Pages/User/SysAdmins/UserProductMappingGridComponent.razor
+++ b/TIAMSharedUI/Pages/User/SysAdmins/UserProductMappingGridComponent.razor
@@ -34,8 +34,12 @@
-
-
+
+ @* *@
+
+ @* *@
+
+ @* *@
@@ -50,10 +54,10 @@
@{
- var transfer2 = (UserProductMapping)userEditFormContext.EditModel;
+ var userProduct = (UserProductMapping)userEditFormContext.EditModel;
}
-
+
@userEditFormContext.GetEditor("UserId")
diff --git a/TIAMWebApp/Server/Controllers/ServiceProviderAPIController.cs b/TIAMWebApp/Server/Controllers/ServiceProviderAPIController.cs
index 5c900a22..f9ceed0d 100644
--- a/TIAMWebApp/Server/Controllers/ServiceProviderAPIController.cs
+++ b/TIAMWebApp/Server/Controllers/ServiceProviderAPIController.cs
@@ -273,7 +273,7 @@ namespace TIAMWebApp.Server.Controllers
{
_logger.Info($@"GetAllUserProductMappings called");
- var companyies = (await adminDal.GetAllUserProductMappingsAsync()).OrderBy(x => x.ProductId).ToList();
+ var companyies = (await adminDal.GetAllUserProductMappingsAsync()).OrderBy(x => x.User.Profile.Name).ToList();
return companyies;
}
diff --git a/Tiam.Services.Client.Tests/SignalRClientTest.cs b/Tiam.Services.Client.Tests/SignalRClientTest.cs
index dd2f7dbe..be68a922 100644
--- a/Tiam.Services.Client.Tests/SignalRClientTest.cs
+++ b/Tiam.Services.Client.Tests/SignalRClientTest.cs
@@ -8,6 +8,7 @@ using TIAM.Core.Loggers;
using TIAM.Database.Test;
using TIAM.Entities.ServiceProviders;
using TIAM.Entities.Transfers;
+using TIAM.Entities.Users;
using TIAM.Services;
using TIAMWebApp.Shared.Application.Services;
using TIAMWebApp.Shared.Application.Utility;
@@ -91,6 +92,15 @@ namespace Tiam.Services.Client.Tests
Assert.IsTrue(companies.Count > 0);
}
+ [TestMethod]
+ public async Task GetAllUserProductMappingsTest_ReturnProductMappings_WhenHasProductMappings()
+ {
+ var userProductMapping = await _signalRClient.GetAllAsync>(SignalRTags.GetAllUserProductMappings);
+
+ Assert.IsNotNull(userProductMapping);
+ Assert.IsTrue(userProductMapping.Count > 0);
+ }
+
[DataTestMethod]
[DataRow(["cfb27fc2-54c2-4f07-8471-587d6b79b019", "7385c4e3-3c1e-4c5e-9926-8c0ea60dcb38"])]
public async Task TransferDestinationCrudTest(string[] transferDestIdAddressIdStrings)