Exemple #1
0
        public ActionResult List()
        {
            var membershipUserCollection = MembershipUserExtended.GetExtendedMembershipUserCollection();
            var userModelCollection      = new List <UserModel>();

            userModelCollection.AddRange(membershipUserCollection.Select(mu => new UserModel(mu)));


            return(View(userModelCollection));
        }
        public ActionResult UserQuickSearch(string term)
        {
            var users = MembershipUserExtended.GetExtendedMembershipUserCollection(term).Select(c => new { label = c.FullName });

            return(Json(users, JsonRequestBehavior.AllowGet));
        }