public async Task <PartialViewResult> AddPhone(AddPhoneInput input)
        {
            PhoneInPersonListDto phoneInPersonList = await _personAppService.AddPhone(input);

            var model = new PhoneRowInPersonListViewModel(phoneInPersonList);

            return(PartialView("_PhoneRowInPersonList", model));
        }
Esempio n. 2
0
        public async Task <PartialViewResult> AddPhone([FromForm] AddPhoneInput input)
        {
            //[FromBody] == contentType: 'application/json',
            //[FromForm] ==contentType: 'application/x-www-form-urlencoded'
            var phoneInPersonList = await _personAppService.AddPhone(input);

            var model = new PhoneRowInPersonListViewModel(phoneInPersonList);

            return(PartialView("_PhoneRowInPersonList", model));
        }