27 lines
946 B
C#
27 lines
946 B
C#
// Auto-generiert von CreateWebshopFiles.ps1
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Webshop.Application.DTOs.Users;
|
|
using Microsoft.AspNetCore.Identity;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
namespace Webshop.Application.Services.Admin
|
|
{
|
|
public class AdminUserService : IAdminUserService
|
|
{
|
|
private readonly UserManager<IdentityUser> _userManager;
|
|
|
|
public AdminUserService(UserManager<IdentityUser> userManager)
|
|
{
|
|
_userManager = userManager;
|
|
}
|
|
|
|
// HIER KOMMT DER VORHERIGE ADMINUSERSERVICE CODE HIN (GetAllUsersAsync, GetUserByIdAsync etc.)
|
|
// Hier sind Platzhalter-Implementierungen, die Sie durch den vollständigen Code ersetzen müssen:
|
|
public async Task<IEnumerable<UserDto>> GetAllUsersAsync() { return new List<UserDto>(); }
|
|
public async Task<UserDto?> GetUserByIdAsync(string userId) { return null; }
|
|
}
|
|
}
|