// GET: LeaveRequestController1/Details/5
        public ActionResult Details(int id)
        {
            var leaverequest = _LeaveRequestRepo.FindByID(id);
            var model        = _mapper.Map <LeaveRequestVM>(leaverequest);

            return(View(model));
        }
        // GET: LeaveRequest/Details/5
        public async Task <ActionResult> Details(int id)
        {
            var varLeaveRequestRepositoryClass = await _ILeaveRequestRepository.FindByID(id);

            var varLeaveRequestVMClass = _IMapper.Map <LeaveRequestVMClass>(varLeaveRequestRepositoryClass);

            return(View(varLeaveRequestVMClass));
        }