public IEnumerable <WeatherForecast> Get() { var result = studentService.Add(); var rng = new Random(); 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()); }
public async Task <IActionResult> GetResult() { var result = await studentService.Add(); return(Ok(result)); }