public ActionResult <AddressViewModel> Update(Guid id, AddressViewModel addressViewModel) { if (id != addressViewModel.AddressID) { return(BadRequest()); } if (ModelState.IsValid) { return(_iAddressAppService.Update(addressViewModel)); } return(NoContent()); }
public async Task <AjaxResponse <bool> > Update([FromBody] AddressDto dto) { var res = await _appservice.Update(dto); return(new AjaxResponse <bool>(res)); }