public IActionResult GetContactByPhone(string phoneNumber = null, string email = null) { Contact contact = _repo.GetContactByEmail(phoneNumber, email); if (contact != null) { return(Ok(contact)); } else { return(NoContent()); } }
public IActionResult GetContactByPhone(string phoneNumber = null, string email = null) { Contact contact = _repo.GetContactByEmail(phoneNumber, email); if (contact != null) { return(Ok(contact)); } else { return(NoContent()); } }