コード例 #1
0
        public ActionResult PermitHistory()
        {
            DateTime today = DateTime.Today;

            ViewBag.EmpID = new SelectList(_permitService.GetEmployees(), "EmpId", "Name");
            var permit = _permitService.EmployeePermit(filter: x => x.EndDate < today).Where(y => y.Status == "Onaylandı");

            return(View(permit));
        }