Exemplo n.º 1
0
        // GET: Album/Create
        public ActionResult Create()
        {
            var form = new ArtistAddForm();

            form.GenreList = new SelectList(m.GenreGetAll(), "Id", "Name");

            return(View(form));
        }
Exemplo n.º 2
0
        // GET: Artists/Create
        //[Authorize(Roles = "Executive")]
        public ActionResult Create()
        {
            // Create the "add new" artist form
            var form = new ArtistAddForm();

            form.GenreList = new SelectList(m.GenreGetAllStrings());

            return(View(form));
        }