Get users and role and add user row
All checks were successful
Game Ideas build for PR / build_blazor_app (pull_request) Successful in 57s

This commit is contained in:
2025-04-26 21:03:58 +02:00
parent 851f0b5af1
commit 065de43d6c
19 changed files with 325 additions and 10 deletions

View File

@@ -0,0 +1,20 @@
using AutoMapper;
using GameIdeas.Shared.Dto;
using GameIdeas.Shared.Model;
using Microsoft.AspNetCore.Identity;
namespace GameIdeas.WebAPI.Profiles;
public class UserProfile : Profile
{
public UserProfile()
{
CreateMap<IdentityRole, RoleDto>()
.ForMember(d => d.Id, o => o.MapFrom(s => s.Id))
.ForMember(d => d.Name, o => o.MapFrom(s => s.Name));
CreateMap<User, UserDto>()
.ForMember(d => d.Id, o => o.MapFrom(s => s.Id))
.ForMember(d => d.Username, o => o.MapFrom(s => s.UserName));
}
}