public IActionResult EditPhrases(PhrasesEditPhrasesViewModel phrasesEditPhrasesViewModel)
 {
     using (var daef = new DentistAssistantContext())
     {
         var phrase = daef.Phrases.Find(phrasesEditPhrasesViewModel.Id);
         phrase.Description = phrasesEditPhrasesViewModel.Description;
         daef.SaveChanges();
         return(View("Index", daef.Phrases.ToList()));
     }
 }
 public IActionResult EditPhrases(int id)
 {
     using (var daef = new DentistAssistantContext())
     {
         var phrase = daef.Phrases.Find(id);
         PhrasesEditPhrasesViewModel phrasesEditPhrasesViewModel = new PhrasesEditPhrasesViewModel()
         {
             Id          = phrase.Id,
             Description = phrase.Description
         };
         return(View(phrasesEditPhrasesViewModel));
     }
 }