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
All checks were successful
Game Ideas build for PR / build_blazor_app (pull_request) Successful in 57s
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user