Esempio n. 1
0
        public ActionResult Edit(int?id)
        {
            var contract = id != null?queries.GetSongList(id.Value) : new SongListContract();

            var model = new SongListEditViewModel(contract, PermissionContext);

            return(View(model));
        }
Esempio n. 2
0
        public ActionResult Details(int id = invalidId)
        {
            if (id == invalidId)
            {
                return(NoId());
            }

            var contract = queries.GetSongList(id);

            return(View(contract));
        }
Esempio n. 3
0
        public SongListContract GetSongListById(int id)
        {
            var list = songListQueries.GetSongList(id);

            return(list);
        }