Recreated solution with web app template. Improved theme. Switched to ShadcnBlazor library
This commit is contained in:
21
Moonlight.Api/Mappers/UserMapper.cs
Normal file
21
Moonlight.Api/Mappers/UserMapper.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Riok.Mapperly.Abstractions;
|
||||
using Moonlight.Shared.Http.Requests.Users;
|
||||
using Moonlight.Shared.Http.Responses.Users;
|
||||
using Moonlight.Api.Database.Entities;
|
||||
|
||||
namespace Moonlight.Api.Mappers;
|
||||
|
||||
[Mapper]
|
||||
[SuppressMessage("Mapper", "RMG020:No members are mapped in an object mapping")]
|
||||
[SuppressMessage("Mapper", "RMG012:No members are mapped in an object mapping")]
|
||||
public static partial class UserMapper
|
||||
{
|
||||
public static partial IQueryable<UserResponse> ProjectToResponse(this IQueryable<User> users);
|
||||
|
||||
public static partial UserResponse MapToResponse(User user);
|
||||
|
||||
public static partial void Merge([MappingTarget] User user, UpdateUserRequest request);
|
||||
|
||||
public static partial User MapToUser(CreateUserRequest request);
|
||||
}
|
||||
Reference in New Issue
Block a user