public IActionResult Update(string id, Person bookIn) { var person = _phoneBookService.Get(id); if (person == null) { return(NotFound()); } _phoneBookService.Update(id, bookIn); return(NoContent()); }
public async Task <IActionResult> Put([FromBody] PhoneBookViewModel phoneBookModel) { var result = await _service.Update(phoneBookModel); return(Ok(result)); }