Exemplo n.º 1
0
        public ActionResult TableEdit()
        {
            TitleEditViewModel model = new TitleEditViewModel();

            model.Titles              = _pubsService.ListTitles();
            model.Authors             = _pubsService.ListAuthors();
            model.PublisherSelectList = new SelectList(_pubsService.ListPublishers(), "PublisherID", "Name");
            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult AuthorFilter()
        {
            AuthorFilterViewModel model = new AuthorFilterViewModel();

            model.Publishers = _pubsService.ListPublishers();
            model.Authors    = new List <Author>();

            return(View(model));
        }
Exemplo n.º 3
0
        // GET: Publisher
        public ActionResult Index()
        {
            _telemetryClient.TrackTrace("Publisher Index: Retrieving Publishers...");
            List <Publisher> model = _pubsService.ListPublishers();

            return(View(model));
        }
Exemplo n.º 4
0
        // GET: Publisher
        public ActionResult Index()
        {
            List <Publisher> model = _pubsService.ListPublishers();

            return(View(model));
        }