コード例 #1
0
        public ActionResult AddPostTest(string id)
        {
            var site         = DbUtils.GetSiteidIdForUser(User.Identity.Name);
            var siteCode     = DbUtils.GetSiteCodeForUser(User.Identity.Name);
            var tests        = DbPostTestsUtils.GetStaffPostTestsActive(id, siteCode);
            var staffInfo    = DbUtils.GetStaffInfo(int.Parse(id));
            var postTestView = new PostTestView();

            postTestView.StaffId   = staffInfo.ID;
            postTestView.StaffName = staffInfo.FirstName + " " + staffInfo.LastName;
            postTestView.PostTests = tests;
            return(View(postTestView));
        }