// GET api/<controller> public IEnumerable<Fish> Get() { using(f360Entities model = new f360Entities()) { var fishes = from f in model.Fish select f; return fishes; } //return new string[] { "value1", "value2" }; }
// GET api/<controller> public IEnumerable <Fish> Get() { using (f360Entities model = new f360Entities()) { var fishes = from f in model.Fish select f; return(fishes); } //return new string[] { "value1", "value2" }; }