public async Task <IActionResult> Leave(DateTime Date, int Search, int id = 0)
        {
            ViewBag.Emps = new SelectList(await _empRepository.GetEmps(), "EmpId", "EmpFullName");
            ViewBag.Id   = id;
            if (Date == DateTime.MinValue)
            {
                var data = await _leaveRepository.SearchLeave1(Search);

                return(View(data));
            }
            else if (Search == 0)
            {
                var data = await _leaveRepository.SearchLeave3(Date);

                return(View(data));
            }
            else
            {
                var data = await _leaveRepository.SearchLeave2(Search, Date);

                return(View(data));
            }
        }