public async Task <PartialViewResult> AddPhone(AddPhoneInput input) { PhoneInPersonListDto phoneInPersonList = await _personAppService.AddPhone(input); var model = new PhoneRowInPersonListViewModel(phoneInPersonList); return(PartialView("_PhoneRowInPersonList", model)); }
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)); }