public GetRestrictionResponse GetRestriction(GetRestrictionRequest request) { GetRestrictionResponse response = new GetRestrictionResponse(); Restriction restriction = _restrictionRepository .FindBy(request.RestrictionId); if (restriction != null) { response.RestrictionFound = true; response.Restriction = restriction.ConvertToRestrictionView(); } else { response.RestrictionFound = false; } return(response); }