示例#1
0
        public async Task <IActionResult> Get(Guid memberId)
        {
            var locations = await _locationRepository.AllForMember(memberId);

            if (locations == null)
            {
                return(NotFound());
            }
            return(Ok(locations));
        }
示例#2
0
 public IActionResult GetLocationsForMember(Guid memberId)
 {
     return(this.Ok(locationRepository.AllForMember(memberId)));
 }