public ActionResult EditUser() { var id = Session["ID"]; var user = client.GetUser(int.Parse(id.ToString())); var userViewbag = new UserDetails() { ID = id.ToString(), Email = Session["Email"].ToString(), Name = user.Name, Phone = user.Phone, Address = user.Address, Zipcode = user.Zipcode, Age = user.Age }; return(View(userViewbag)); }