public async Task <IActionResult> Get(Guid memberId) { var locations = await _locationRepository.AllForMember(memberId); if (locations == null) { return(NotFound()); } return(Ok(locations)); }
public IActionResult GetLocationsForMember(Guid memberId) { return(this.Ok(locationRepository.AllForMember(memberId))); }