Пример #1
0
 public IActionResult SearchContactsBy(string Criteria)
 {
     try
     {
         using (var contactRepo = new ContactsRepository())
         {
             var results = contactRepo.GetContactsBy(Criteria);
             return(Ok(results));
         }
     }
     catch (Exception ex)
     {
         return(NotFound(ex));
     }
 }