public IEnumerable <UserVM> GetAdmin() { var normUser = (from u in db.Users where u.Role == "admin" select u).ToList(); List <UserVM> userVmList = new List <UserVM>(); foreach (var user in normUser) { userVmList.Add(ConvertClass.UserToVM(user)); } return(userVmList); }