public IActionResult Index()
        {
            var user = JsonConvert.DeserializeObject <SessionContext>(HttpContext.Session.GetString(ResultConstant.LoginUserInfo));

            var requestModel = _employeeLeaveRequestBusinessEngine.GetAllLeaveRequestByUserId(user.LoginId);

            ViewBag.EmployeeLeaveTypes = _employeeLeaveTypeBusinessEngine.GetAllEmployeeLeaveTypes();
            if (requestModel.IsSuccess)
            {
                return(View(requestModel.Data));
            }

            return(View(user));
        }
        public IActionResult Index()
        {
            var data = _employeeLeaveTypeBusinessEngine.GetAllEmployeeLeaveTypes();

            if (data.IsSuccess)
            {
                var result = data.Data;
                return(View(result));
            }
            return(View());
        }