コード例 #1
0
        public ActionResult Recordings(User u, Recording recording) // this should take a list<Recording> instead? or maybe user just has a list of Recordings?
        {
            ViewResult vr = View("Index");

            if (u != null)
            {
                //ViewBag.recordings = DBhandler.GetRecordings(u);
                vr = View(u);
                ViewBag.recordings = db.GetRecording((int)u.UserID, recording.recordID);
            }
            return(vr);
        }