public async Task <IActionResult> Get(int restrictionId) { try { var restrictionEntities = await _restrictionRepository.GetAsync(restrictionId); return(Ok(restrictionEntities)); } catch (Exception) { // _logger.LogCritical($"Exception {restrictionId}.", ex); return(StatusCode(500, "A problem happend while handling your request.")); } }