public async Task <IViewComponentResult> InvokeAsync(int id) { var data = await _leaveRepository.GetLeaveAsync(id); return(View(data)); }