public async Task <IActionResult> Edit(Ewent model) { if (ModelState.IsValid) { try { await EventRepo.Edit(model); return(message(MessageType.success)); } catch (Exception e) { return(message(MessageType.danger)); } } return(message(ModelState)); }