Ejemplo n.º 1
0
        public IEnumerable <string> Get()
        {
            csvData.LoadClaimCsv();
            csvData.LoadMemberCsv();

            return((IEnumerable <string>)csvData.LoadMemberCsv());
        }
Ejemplo n.º 2
0
        public IEnumerable <WeatherForecast> Get()
        {
            Member c1 = new Member();

            c1.FirstName = "smit";
            c1.LastName  = "samarth";
            List <object> ol = new List <object>();

            ol.Add(c1);
            var rng    = new Random();
            var result = csvData.LoadClaimCsv();

            return(Enumerable.Range(1, 5).Select(index => new WeatherForecast
            {
                Date = DateTime.Now.AddDays(index),
                TemperatureC = rng.Next(-20, 55),
                Summary = Summaries[rng.Next(Summaries.Length)]
            })
                   .ToArray());
        }