Exemple #1
0
        public async Task <IHttpActionResult> GetTeamWithCountries()
        {
            var model = await services.GetTeamWithCountries();

            if (model != null)
            {
                return(Ok <TeamModelWithCountries>(model));
            }
            else
            {
                return(InternalServerError());
            }
        }
Exemple #2
0
        public async Task <ActionResult> Add()
        {
            var model = await teamService.GetTeamWithCountries();

            return(View(model));
        }