예제 #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));
        }
예제 #2
0
        public ActionResult AuthorFilter()
        {
            AuthorFilterViewModel model = new AuthorFilterViewModel();

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

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

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

            return(View(model));
        }