public ActionResult Index(string message = "") { ViewBag.ErrorMessage = message; SetOfBookListModel model = new SetOfBookListModel(); model.SetOfBooks = SetOfBookHelper.GetSetOfBooks(); return(View(model)); }
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)); }