Exemple #1
0
        public async Task <ActionResult> Update(TelephoneNote telephoneNote)
        {
            try
            {
                await telephoneRepository.UpdateTelephoneNote(telephoneNote);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
Exemple #2
0
 public void Update([FromBody] TelephoneNote telephoneNote)
 {
     telephoneRepository.UpdateTelephoneNote(telephoneNote);
 }
 public void Update(TelephoneNote telephoneNote)
 {
     telephoneRepository.UpdateTelephoneNote(telephoneNote);
 }