コード例 #1
0
        /// <summary>
        /// The index action.
        /// </summary>
        /// <returns>The index view.</returns>
        public ActionResult Index()
        {
            // Pull any data from a redirect into model state
            SyncTempDataWithModelState();

            // Get the collection of users in the database
            GetUsersResponse response;

            using (var client = new AuthenticationServiceClient())
            {
                response = client.GetAllUsers(new GetUsersRequest());
            }

            // Return the index view with the users
            return View(response.Users);
        }