public ActionResult <IEnumerable <ApiModel> > GetAll() { var models = _repository.GetModels(); foreach (var item in models) { System.Console.WriteLine(item); } return(Ok(models)); // return new string[] { "value1", "value2" }; }