Beispiel #1
0
        public ActionResult Index()
        {
            ExportService <Feature> exportService = new ExportService <Feature>();

            ViewBag.ExportColumns = exportService.GetSelectList();
            return(View(featRepo.GetAll().ToList()));
        }
Beispiel #2
0
        public ActionResult Index()
        {
            ExportService <Member> exportService = new ExportService <Member>();

            ViewBag.ExportColumns = exportService.GetSelectList();
            return(View(memberRepo.GetAll().ToList()));
        }
        public ActionResult Index()
        {
            ExportService <LogRecord> exportService = new ExportService <LogRecord>();

            ViewBag.ExportColumns = exportService.GetSelectList();

            string user = WebSiteHelper.UserName;

            ViewBag.Title = user;
            if (user == "admin")
            {
                ViewBag.Title = "會員";
                return(View(logRecRepo.GetAll()));
            }



            int memberId = memberRepo.Get(m => m.Name == user).ID;

            return(View(logRecRepo.GetAll().Where(r => r.MemberId == memberId).ToList()));
        }