Example #1
0
 // 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" };
 }
Example #2
0
 // 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" };
 }