public async Task <IActionResult> OnPostUpdateAsync(Event evnt) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await eventService.UpdateItem(evnt, new int[evnt.Id]); return(RedirectToPage("GetAllHotels")); }
public async Task <IActionResult> OnPostUpdateAsync(Event evnt) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await eventService.UpdateItem(evnt, new int[evnt.Id]); return(RedirectToPage("GetAllHotels")); }