public async Task <IActionResult> getOneStore(int Id) { _logger.LogInformation("Getting store by id", Id); var store = await _storesRepository.GetOneStoreById(Id); return(store == null ? (IActionResult)NotFound() : Ok(store)); }