コード例 #1
0
        // GET: Participant
        public ActionResult FornightlyDiarys(int participantID)
        {
            List <FortnightlyDiary> fortDiarys = db.FortnightlyDiaries.Where(q => q.Participant_ID == participantID).ToList();

            CompleteFortnightly complete = new CompleteFortnightly();

            complete.fortnight = fortDiarys;

            return(View(complete));
        }
コード例 #2
0
        public PartialViewResult DailyDiary(int participantID, DateTime fortStart)
        {
            CompleteFortnightly complete = new CompleteFortnightly(participantID, fortStart);

            return(PartialView(complete));
        }