Exemplo n.º 1
0
        public ActionResult UserDetails()
        {
            var userModel = new UserModel()
            {
                Titles = presenter.Titles()
            };

            return View(userModel);
        }
Exemplo n.º 2
0
        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);
        }