Updated to latest mooncore version. Cleaned up some crud controllers and replaced DataTable with the new DataGrid component
This commit is contained in:
15
Moonlight.ApiServer/Mappers/UserMapper.cs
Normal file
15
Moonlight.ApiServer/Mappers/UserMapper.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Moonlight.ApiServer.Database.Entities;
|
||||
using Moonlight.Shared.Http.Responses.Admin.Users;
|
||||
using Riok.Mapperly.Abstractions;
|
||||
|
||||
namespace Moonlight.ApiServer.Mappers;
|
||||
|
||||
[Mapper]
|
||||
public static partial class UserMapper
|
||||
{
|
||||
// Mappers
|
||||
public static partial UserResponse ToResponse(User user);
|
||||
|
||||
// EF Relations
|
||||
public static partial IQueryable<UserResponse> ProjectToResponse(this IQueryable<User> users);
|
||||
}
|
||||
Reference in New Issue
Block a user