//[Authorize(Roles = nameof(PermissionProvider.ViewGroup))] public HttpResponseMessage GetByid(HttpRequestMessage request, int id) { return(CreateHttpResponse(request, () => { HttpResponseMessage response = null; var model = _stateProvinceService.GetById(id); response = request.CreateResponse(HttpStatusCode.OK, model); return response; })); }