Exemple #1
0
        public ActionResult NoteAction(int?id)
        {
            ViewBag.drpCourseLevel = CommonController.drpCourseLevel();
            ViewBag.drpInstrument  = CommonController.drpInstrument();
            ViewBag.drpMusic       = CommonController.drpMusic();

            if (id != 0)
            {
                MusicSheet dataset = entities.MusicSheets.Find(id);
                return(PartialView(dataset));
            }

            else
            {
                return(PartialView());
            }
        }