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()); }
public async Task <ActionResult> Edit(AccountModel.getUser getusermodel) { return(View(getusermodel)); }