Exemple #1
0
        public async Task <IActionResult> OnPostUpdateAsync(Event evnt)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            await eventService.UpdateItem(evnt, new int[evnt.Id]);

            return(RedirectToPage("GetAllHotels"));
        }