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

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