public IActionResult Get(int id) { if (id.Equals(0) || _complexAccess.GetAddress(id) == null) { return(BadRequest()); } var address = new AddressResource(_complexAccess.GetAddress(id)); var response = new HALResponse(address).AddSelfLink(Request); return(Ok(response)); }