Example #1
0
        // 操作紀錄首頁
        public ActionResult Index()
        {
            RepositoryOperationRecord       repo = new RepositoryOperationRecord();
            List <OperationRecordViewModel> data = repo.Query();

            return(PartialView("_Index", data));
        }
Example #2
0
        // 消費紀錄
        public ActionResult OperationRecord(long RecordID)
        {
            MemberOperationRecordViewModel data  = new MemberOperationRecordViewModel();
            RepositoryMember          repoMember = new RepositoryMember();
            RepositoryOperationRecord repoRecord = new RepositoryOperationRecord();

            data.Member = repoMember.GetMemberViewModel(RecordID);
            data.Record = repoRecord.Query().Where(x => x.MemberID == RecordID).ToList();

            return(PartialView("_OperationRecord", data));
        }