public ActionResult UserDetails() { var userModel = new UserModel() { Titles = presenter.Titles() }; return View(userModel); }
public async Task<ActionResult> UserDetails(UserModel model) { var user = new User() { DoB = model.DoB, Email = model.Email, Firstname = model.Firstname, Lastname = model.Lastname, PhoneNumber = model.PhoneNumber, Title = model.Title, }; var response = await _restHelper.DoPostRequest(JsonConvert.SerializeObject(user), "api/user"); return Json(response); }