public HttpResponseMessage GetReferenceNos(HttpRequestMessage request) { return(GetHttpResponse(request, () => { SCDActual[] actual = _ScorecardService.GetCaption().ToArray(); List <SCDActualDateModel> caption = new List <SCDActualDateModel>(); List <string> captions = null; captions = actual.Select(c => c.Caption).Distinct().ToList(); foreach (var c in captions) { caption.Add(new SCDActualDateModel() { Caption = c }); } return request.CreateResponse <SCDActualDateModel[]>(HttpStatusCode.OK, caption.ToArray()); })); }