// View to list all Unplanned leaves when he click on Data in Table public ActionResult ViewApprovedLeavesByAdminByProjNameByTOL(string ProjName, string TOL) { AdminRole ViewApprovedLeavesByAdmin = new AdminRole(); ViewApprovedLeavesByAdmin.ViewApprovedLeavesByAdminlist = ViewApprovedLeavesByAdmin.ViewApprovedLeavesByAdmin(ProjName, TOL); return(View(ViewApprovedLeavesByAdmin)); }
public ActionResult ViewApprovedLeavesByAdmin() { AdminRole approvedLeavesByAdmin = new AdminRole(); string Branch = Session["Branch"].ToString(); string Project = Session["Project"].ToString(); string SubArea = Session["SubArea"].ToString(); approvedLeavesByAdmin.AppliedLeavesList = approvedLeavesByAdmin.ViewApprovedLeavesByAdmin(SubArea); return(View(approvedLeavesByAdmin)); }