public IHttpActionResult AddReferralAgencyToOrganisation(Guid id, ReferralAgency agency) { if (!ModelState.IsValid) return badModelState(); try { var allAgencies = repo_.AddReferralAgency(id, agency); return Ok(allAgencies); } catch (Exception e) { return BadRequest(e.Message); } } // AddReferralAgencyToOrganisation