Ejemplo n.º 1
0
        public HttpResponseMessage GetReferenceNos(HttpRequestMessage request)
        {
            return(GetHttpResponse(request, () =>
            {
                SolutionRunDate[] solutionRunDate = _ExtractionProcessService.GetRunDate().ToArray();

                List <ArchiveDateModel> solutionRunDates = new List <ArchiveDateModel>();

                List <DateTime> solutiorundates = null;

                solutiorundates = solutionRunDate.Select(c => c.RunDate).Distinct().ToList();

                foreach (var c in solutiorundates)
                {
                    solutionRunDates.Add(new ArchiveDateModel()
                    {
                        RunDate = c
                    });
                }
                return request.CreateResponse <ArchiveDateModel[]>(HttpStatusCode.OK, solutionRunDates.ToArray());
            }));
        }