Ejemplo n.º 1
0
        public async Task <IActionResult> Get(Guid memberId)
        {
            var locations = await _locationRepository.AllForMember(memberId);

            if (locations == null)
            {
                return(NotFound());
            }
            return(Ok(locations));
        }
Ejemplo n.º 2
0
 public IActionResult GetLocationsForMember(Guid memberId)
 {
     return(this.Ok(locationRepository.AllForMember(memberId)));
 }