Esempio n. 1
0
 public ApplicationUserViewModel GetByUserId(string userId)
 {
     return(TransformModels.ToApplicationUserViewModel(_wheelService.GetUserById(userId)));
 }
Esempio n. 2
0
 // [Authorize(Roles = "Admin")]
 public IEnumerable <ApplicationUserViewModel> GetAll()
 {
     return(_wheelService.GetAllUsers().Select(x => TransformModels.ToApplicationUserViewModel(x)));
 }