Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
        public ActionResult UserQuickSearch(string term)
        {
            var users = MembershipUserExtended.GetExtendedMembershipUserCollection(term).Select(c => new { label = c.FullName });

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