public async Task <ActionResult> Update(TelephoneNote telephoneNote) { try { await telephoneRepository.UpdateTelephoneNote(telephoneNote); return(RedirectToAction("Index")); } catch { return(View()); } }
public void Update([FromBody] TelephoneNote telephoneNote) { telephoneRepository.UpdateTelephoneNote(telephoneNote); }
public void Update(TelephoneNote telephoneNote) { telephoneRepository.UpdateTelephoneNote(telephoneNote); }