Exemplo n.º 1
0
        public async Task <IHttpActionResult> GetStadiumWithCountries()
        {
            var model = await services.GetStadiumWithCountries();

            if (model != null)
            {
                return(Ok <StadiumModelWithCountries>(model));
            }
            else
            {
                return(InternalServerError());
            }
        }
Exemplo n.º 2
0
        public async Task <ActionResult> Add()
        {
            var stadium = await stadiumService.GetStadiumWithCountries();

            return(View(stadium));
        }