예제 #1
0
        public ActionResult Index(string message = "")
        {
            ViewBag.ErrorMessage = message;
            SetOfBookListModel model = new SetOfBookListModel();

            model.SetOfBooks = SetOfBookHelper.GetSetOfBooks();
            return(View(model));
        }
예제 #2
0
        public ActionResult Index()
        {
            SetOfBookListModel model = new SetOfBookListModel();
            var list = service.GetByCompanyId(AuthenticationHelper.User.CompanyId);

            model.SetOfBooks = list.Select(a => new SetOfBookModel(a)).ToList();
            return(View(model));
        }