public static Staff GetCurrentUser(string currentUsername)
        {
            Staff staff = new Staff();

            staff = StaffService.FindAll(currentUsername).Find(st => st.StaffId == currentUsername);
            return(staff);
        }
Exemple #2
0
        public ActionResult Index()
        {
            List <Student> StudentList = StudentService.FindAll(User.Identity.Name);
            List <Staff>   StaffList   = StaffService.FindAll(User.Identity.Name);
            Users          Users       = new Users()
            {
                Staffs   = StaffList,
                Students = StudentList
            };

            return(View(Users));
        }