public IActionResult GetApplicationContacts([FromRoute] int id) { if (!_appRepo.ApplicationExists(id)) { return(NotFound()); } var appContacts = _contactRepo.GetContactsByApplication(id); return(Ok(appContacts)); }
public IActionResult GetApplicationContacts([FromRoute] int id) { if (!_appRepo.ApplicationExists(id)) { return(NotFound()); } var appContacts = _contactRepo.GetContactsByApplication(id); return(Ok(appContacts)); }