Error CS0051 Inconsistent accessibility: parameter type 'UserManager<ApplicationUser>' is less accessible than method 'HomeController.HomeController(UserManager<ApplicationUser>)'
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using LoginDemo.Models; using Microsoft.AspNetCore.Identity; namespace LoginDemo.Controllers { public class HomeController : Controller { private readonly UserManager<ApplicationUser> userManager; public HomeController(UserManager<ApplicationUser> userManager) { this.userManager = userManager; } public IActionResult Index() { return View(); } public IActionResult Privacy() { return View(); } [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); } } }
readonly
UserManager
HomeController
public
ApplicationUser
internal
ApplicatoinUser
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)