Ejemplo n.º 1
0
        public ActionResult Index()
        {
            ExportService <Feature> exportService = new ExportService <Feature>();

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

            ViewBag.ExportColumns = exportService.GetSelectList();
            return(View(memberRepo.GetAll().ToList()));
        }
Ejemplo n.º 3
0
        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()));
        }