//Displaying all the Emplopye Leave Details  With the Particular ID
        public ActionResult GetLeaveById(string id)
        {
            HRMDB objHRMEmp = new HRMDB();

            id = Session["id"].ToString();
            //var data = (from x in objHRMEmp.AspNetUsers where x.Id == model.id select x).SingleOrDefault();
            var    empdata = (from x in objHRMEmp.AspNetUsers where x.Id == id select x).SingleOrDefault();
            string Dept    = empdata.DepartmentId;

            ViewBag.deptid = Dept;
            var leavedetails = objLeaveBLL.GetLeaveById(id);

            return(View(leavedetails));
        }