public ICustomPrincipal(ClientUserData clientUserData) { this.Identity = new GenericIdentity(string.Format("{0}_{1}", clientUserData.UserId, clientUserData.EmpName)); Mapper.DynamicMap(clientUserData, this); }
public ICustomPrincipal(ClientUserData clientUserData) { this.Identity = new GenericIdentity(string.Format("{0}_{1}", clientUserData.UserId, clientUserData.OrgId)); Mapper.CreateMap <ClientUserData, ICustomPrincipal>(); Mapper.Map(clientUserData, this); }