public ActionResult DetiledView(string Application_Id)
        {
            if (Session["EmpID"] == null)
            {
                return(RedirectToAction("Index", "LogIn"));
            }
            if (Application_Id != null && Session["EmpID"] != null)
            {
                ViewBag.ApplicationId = Application_Id;
                Application_Id        = LeaveApplication.Models.Encryption.Base64Decode(Application_Id);

                try
                {
                    int.Parse(Application_Id);
                }
                catch (FormatException)
                {
                    return(RedirectToAction("Index", "ViewApplications"));
                }
                LeaveApplication.Models.LeaveApplication x = lb.GetViewApplication(Application_Id);
                List <StatusHistory> a = lb.GetStatusHistory(Application_Id);
                if (((Employee)Session["Employee"]).IsManager && ManagerBusinessLayer.IsUnderManagement(Application_Id, ((Employee)Session["Employee"]).EmployeeID) && lb.IsPending(int.Parse(Application_Id)))
                {
                    ViewBag.ShowAction = true;
                }
                else
                {
                    ViewBag.ShowAction = false;
                }
                ViewBag.SH = a; // lb.GetStatusHistory(Application_Id);
                // Session["FileName"] = x.FileName;
                return(View("ViewFullApplication", x));
            }
            else
            {
                return(RedirectToAction("Index", "LogIn"));
            }
        }