public async Task <IActionResult> Get( [Range(-90, 90)] double?lat = null, [Range(-180, 180)] double?lng = null, [Range(0, int.MaxValue)] int radius = 50) { if (!lat.HasValue || !lng.HasValue) { return(Ok(await _repository.Get())); } return(Ok(await _repository.Get(lat.Value, lng.Value, radius))); }
public Store GetbyId(Guid id) { var result = _StoreRepository.Get(id); return(result); }