public async Task <IActionResult> SpecialLeave(int id, DateTime start_Date, DateTime end_Date)
        {
            ViewBag.Rcount = _leaveRepository.leaveRecomCount();
            ViewBag.Acount = _leaveRepository.leaveAppCount();
            if (start_Date == DateTime.MinValue && end_Date == DateTime.MinValue)
            {
                ViewBag.Id = id;
                var data = await _leaveRepository.GetSpecialLeaveById(id);

                return(View(data));
            }
            else
            {
                ViewBag.Id = id;
                var data = await _leaveRepository.SpecialLeavePeriod(id, start_Date, end_Date);

                return(View(data));
            }
        }
        public async Task <IActionResult> SpecialLeave(DateTime start_Date, DateTime end_Date)
        {
            string user        = User.FindFirst("Index").Value;
            var    Currentuser = await _taskRepository.GetCurrentUser(user);

            ViewBag.photo = Currentuser.PhotoURL;
            int EmpId = Currentuser.EmpId;

            if (start_Date == DateTime.MinValue && end_Date == DateTime.MinValue)
            {
                var data = await _leaveRepository.GetSpecialLeaveById(EmpId);

                return(View(data));
            }
            else
            {
                ViewBag.valueHas = true;
                ViewBag.start    = start_Date.Day + "/" + start_Date.Month + "/" + start_Date.Year;
                ViewBag.end      = end_Date.Day + "/" + end_Date.Month + "/" + end_Date.Year;;
                var data = await _leaveRepository.SpecialLeavePeriod(EmpId, start_Date, end_Date);

                return(View(data));
            }
        }