public async Task <GetScopeByNameResponse> Get(GetScopeByNameRequest request) { var query = await _scopeRepository.GetScopeByName(request.Name); if (query == null) { return(null); } return(new GetScopeByNameResponse() { Scope = query.First() }); }