コード例 #1
0
        public async Task <ActionResult> Edit(int id)
        {
            userApi = new UserApi();
            AccountModel.getUser getuser = new AccountModel.getUser();
            var result = userApi.getUser(id);

            if (result.IsCompleted)
            {
                getuser = JsonConvert.DeserializeObject <AccountModel.getUser>(result.Result);
                return(View(getuser));
            }
            return(View());
        }
コード例 #2
0
 public async Task <ActionResult> Edit(AccountModel.getUser getusermodel)
 {
     return(View(getusermodel));
 }