using EasyCashIdentity.EntityLayer.Concrete;
using Microsoft.AspNet.Identity;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
public class MyAccountsController : Controller
{
private readonly UserManager<AppUser> _userManager;
public MyAccountsController(UserManager<AppUser> userManager)
{
_userManager = userManager;
}
[HttpGet]
public IActionResult Index()
{
return View();
}
}
}
There is my code and I am just getting the error, it says;
"CS0311: The type 'EasyCashIdentity.EntityLayer.Concrete.AppUser' cannot be used as type parameter 'TUser' in the generic type or method 'UserManager'. There is no implicit reference conversion from 'EasyCashIdentity.EntityLayer.Concrete.AppUser' to 'Microsoft.AspNetCore.Identity.IdentityUser'."
using EasyCashIdentity.EntityLayer.Concrete; using Microsoft.AspNet.Identity; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc;
namespace EasyCashIdentity.PresentationLayer.Controllers { [Authorize]
}
There is my code and I am just getting the error, it says;
"CS0311: The type 'EasyCashIdentity.EntityLayer.Concrete.AppUser' cannot be used as type parameter 'TUser' in the generic type or method 'UserManager'. There is no implicit reference conversion from 'EasyCashIdentity.EntityLayer.Concrete.AppUser' to 'Microsoft.AspNetCore.Identity.IdentityUser'."
What Should I do?