Ejemplo n.º 1
0
        public async Task <IActionResult> OnPost()
        {
            HttpRequests req       = new HttpRequests();
            PlaceType    placetype = new PlaceType()
            {
                Name = PlacetypeName
            };

            if (await req.CreatePlaceTypeAsync(placetype, BaseController.GetToken()) != HttpStatusCode.OK)
            {
                // Zeig Fehler an
            }
            return(RedirectToPage("/PlacetypeSite"));
        }