public ActionResult Search(string action_filter, string action_name) { _viewModelBook = new DemandsForBookViewModel(); _viewModelBook.DemandsForBooks = _dispacher.ExecuteCommand<IBookAppService, List<DemandsForBook>>(service => service.GetAllDemandsForBookByStudent(((Student)GlobalManager.UserCurrent).Id)); return PartialView("_AjaxSearchDemandsForBookList", _viewModelBook); }
// GET: Library public ActionResult Index() { _viewModelBook = new DemandsForBookViewModel(); _viewModelBook.DemandsForBooks = _dispacher.ExecuteCommand<IBookAppService, List<DemandsForBook>>(service => service.GetAllDemandsForBookByStudent(((Student)GlobalManager.UserCurrent).Id)); return View(_viewModelBook); }