Ejemplo n.º 1
0
        public ActionResult List()
        {
            string userId  = User.Identity.GetUserId();
            var    s1      = StaffDepartmentDAO.GetStaffByUserId(userId);
            var    reqList = RequestDAO.GetRequests(s1).ToList();

            ModelState.Clear();
            return(View(reqList));
        }
Ejemplo n.º 2
0
        public List <RequestViewModel> ReadRequest()
        {
            var   userId = User.Identity.GetUserId();
            Staff s1     = StaffDepartmentDAO.GetStaffByUserId(userId);

            var reqList = new List <RequestViewModel>();

            if (s1 != null)
            {
                reqList = RequestDAO.GetRequests(s1);
            }
            return(reqList);
        }