public async Task <HttpResponseMessage> getMetaData(string ConversationType) { HttpRequestMessage request = Request; MetadataModel metaData = new MetadataModel(); metaData = await metaDataRepository.getMetaData(ConversationType); return(GlobalFunctions.CreateResponse <MetadataModel>(request, HttpStatusCode.OK, metaData)); }
public async Task <HttpResponseMessage> getMetaData(string ConversationType) { var context = _httpContextAccessor.HttpContext; HttpRequestMessageFeature hreqmf = new HttpRequestMessageFeature(context); HttpRequestMessage request = hreqmf.HttpRequestMessage; MetadataModel metaData = new MetadataModel(); metaData = await metaDataRepository.getMetaData(ConversationType); return(GlobalFunctions.CreateResponse <MetadataModel>(request, HttpStatusCode.OK, metaData));; }