public async Task <IActionResult> Delete(int id) { try { await EventRepo.DeleteById(id); return(message(MessageType.success)); } catch (Exception e) { return(message(MessageType.danger)); } }