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

            return(View(model));
        }