c# - budlesconfig,cs and identity MVC 5 -
hello hope can either help or tell isn't possible
im trying utilize next code
var manager = new usermanager<applicationuser>(new userstore<applicationuser>(new userdb())); var currentuser = manager.findbyid(user.identity.getuserid()); ;
to obtain current user that's logged in. code works on controller within mvc 5 trying utilize on bundlesconfig.cs can utilize sass styles page user set.
if isn't possible on here know of other ways thought easier on here.
big
yes build processes not allow utilize user identity on within mvc framework
you need user either in controller model or razor view
there no way utilize in .cs bundle page.
c# asp.net-mvc
No comments:
Post a Comment