// ReSharper disable InconsistentNaming public async Task<HttpResponseMessage> GetAsync(string lti_version = "LTI-1p0") // ReSharper restore InconsistentNaming { try { var context = new GetToolConsumerProfileContext(lti_version); await OnGetToolConsumerProfile(context); return context.StatusCode == HttpStatusCode.OK ? Request.CreateResponse(context.StatusCode, context.ToolConsumerProfile, LtiConstants.ToolConsumerProfileMediaType) : Request.CreateResponse(context.StatusCode); } catch (Exception ex) { return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex); } }
// ReSharper disable InconsistentNaming public async Task <HttpResponseMessage> Get(string lti_version = "LTI-1p0") // ReSharper restore InconsistentNaming { try { var context = new GetToolConsumerProfileContext(lti_version); await OnGetToolConsumerProfile(context); return(context.StatusCode == HttpStatusCode.OK ? Request.CreateResponse(context.StatusCode, context.ToolConsumerProfile, LtiConstants.ToolConsumerProfileMediaType) : Request.CreateResponse(context.StatusCode)); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex)); } }