Пример #1
0
        // GET: Staff/Details/5
        public ActionResult Details(int id)
        {
            StaffDetailsViewModel staffDetailsVM = new StaffDetailsViewModel();

            staffDetailsVM.Staff        = adminWebDB.GetStaffByID(id);
            staffDetailsVM.Transactions = adminWebDB.GetAllTransactionsForUser(id);

            return(View(staffDetailsVM));
        }
Пример #2
0
        // GET: Staff/Details/5
        public ActionResult Details(int id)
        {
            var staff = adminWebDB.GetStaffByID(id);

            return(View(staff));
        }