// 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)); }
public PartialViewResult DailyDiary(int participantID, DateTime fortStart) { CompleteFortnightly complete = new CompleteFortnightly(participantID, fortStart); return(PartialView(complete)); }