33 lines
966 B
C#
33 lines
966 B
C#
using Microsoft.AspNetCore.Identity;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using PSTW_CentralSystem.DBContext;
|
|
using PSTW_CentralSystem.Models;
|
|
using System.Security.Cryptography;
|
|
using System.Text;
|
|
using System.Text.Json;
|
|
|
|
namespace PSTW_CentralSystem.Controllers
|
|
{
|
|
|
|
public class IdentityController: Controller
|
|
{
|
|
private readonly ILogger<HomeController> _logger;
|
|
private readonly CentralSystemContext _authDbContext;
|
|
private readonly UserManager<UserModel> _userManager;
|
|
|
|
public IdentityController(ILogger<HomeController> logger, CentralSystemContext authDbContext, UserManager<UserModel> userManager)
|
|
{
|
|
_logger = logger;
|
|
_authDbContext = authDbContext;
|
|
_userManager = userManager;
|
|
}
|
|
|
|
public async Task<IActionResult> ComDeptAssignment()
|
|
{
|
|
var thisUser = await _userManager.GetUserAsync(User);
|
|
return View(thisUser);
|
|
}
|
|
}
|
|
|
|
}
|