public async Task <IActionResult> CreateApiResource([FromBody] ApiResourceDTO apiResource)
        {
            var createdResource = await _apiResourceManager.Add(Mapper.Map <ApiResource>(apiResource));

            if (createdResource.Item1 == null)
            {
                return(BadRequest(new BadRequestResponse(ModelState, ExceptionKeyHelper.GetString(createdResource.Item2.Value))));
            }
            return(CreatedAtAction("GetByName", new { apiRessourceName = createdResource.Item1.Name }, new CreatedResponse(Mapper.Map <ApiResourceDTO>(createdResource.Item1), 1)));
        }