Ejemplo n.º 1
0
        public async Task <ActionResult> Detail(Guid id)
        {
            var token = await GetAccessToken();

            var user = await UserDetailModel.GetUserDetail(String.Format("{0}/users/{1}", SettingsHelper.AzureAdTenant, id.ToString()), token.AccessToken);

            return(View(user));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> Index()
        {
            var token = await GetAccessToken();

            var user = await UserDetailModel.GetUserDetail("me", token.AccessToken);

            return(View(user));
        }
Ejemplo n.º 3
0
        public async Task <ActionResult> Detail(Guid id)
        {
            var token = await GetAccessToken();

            // wait for model class 'Models/UserDetailModel' to be populated....
            var user = await UserDetailModel.GetUserDetail(String.Format("{0}/users/{1}", SettingsHelper.AzureAdTenant, id.ToString()), token.AccessToken);

            // pass model data to 'Views/User/Detail'
            return(View(user));
        }
Ejemplo n.º 4
0
        public async Task <ActionResult> Index()
        {
            var token = await GetAccessToken();

            // wait for model class 'Models/UserDetailModel' to be populated....
            var user = await UserDetailModel.GetUserDetail("me", token.AccessToken);

            // pass model data to 'Views/User/Index'
            return(View(user));
        }