Example #1
0
 public async Task <IHttpActionResult> GetAllStadiums()
 {
     return(Ok <StadiumCollectionModel>(await services.GetAllStadiums()));
 }
Example #2
0
        public async Task <ActionResult> Index()
        {
            StadiumCollectionModel model = await stadiumService.GetAllStadiums();

            return(View(model));
        }