public ActionResult Resignation(int?page, int PageSize = 10)
        {
            string        UserId     = User.Identity.GetUserId();
            UserViewModel userDetail = generic.GetUserDetail(UserId);
            var           empdetails = ems.GetEmployeeBasicDetails(UserId).FirstOrDefault();

            ViewData["EmpDetails"]  = empdetails;
            ViewData["CompanyLogo"] = cms.GetCompanyLogo(userDetail.SubscriberId).FirstOrDefault();
            ViewBag.UserId          = userDetail.SubscriberId;
            ViewData["UserProfile"] = userDetail;
            PopulatePaging(PageSize);
            ViewBag.Paging = PageSize;
            int pageSize   = PageSize;
            int pageNumber = (page ?? 1);

            if (userDetail.Role == "Employee")
            {
                ViewData["Resignation"] = ems.GetEmployeeResignation().Where(e => e.UserId == UserId).ToPagedList(pageNumber, pageSize);
            }
            PopulateLeavingReason(userDetail.SubscriberId);

            return(View());
        }