Example #1
0
 // GET api/values
 public IEnumerable<object> Get()
 {
     using(GolfStoppRepository repository = new GolfStoppRepository())
     {
         return repository.GetClubs();
     }
 }
Example #2
0
 public ClubModelExtended GetClubExtended(string clubIdExtended)
 {
     Thread.Sleep(1000);
     using (GolfStoppRepository db = new GolfStoppRepository())
     {
         ClubModelExtended club = db.GetClubExtended(clubIdExtended);
         return club;
     }
 }