Accessing logged in user Id from class - MVC 5, AutoMapper and Identity 2.0
问题 So In my project have implemented interfaces and AutoMapper, and Identity 2.0 with Id as int modification form here: http://typecastexception.com/post/2014/07/13/ASPNET-Identity-20-Extending-Identity-Models-and-Using-Integer-Keys-Instead-of-Strings.aspx Question is how to access ApplicationUserManager properties from: public class EnteredByResolver : ValueResolver<ExcursionVM, int> { protected override int ResolveCore(ExcursionVM source) { return 1; // TODO - need to access loged user Id to