示例#1
0
        public ActionResult RecentDocument()
        {
            RecentDocumentViewModel recentDocument = new RecentDocumentViewModel();
            AppUA appUA = Session["AppUA"] as AppUA;

            recentDocument.RecentDocumentList = Mapper.Map <List <RecentDocument>, List <RecentDocumentViewModel> >(_commonBusiness.GetRecentDocument(appUA.UserName));
            return(PartialView("_RecentDocument", recentDocument));
        }
示例#2
0
        public ActionResult SearchDocument(string searchTerm = null)
        {
            RecentDocumentViewModel recentDocument = new RecentDocumentViewModel();

            if (searchTerm != null)
            {
                recentDocument.RecentDocumentList = Mapper.Map <List <RecentDocument>, List <RecentDocumentViewModel> >(_commonBusiness.GetRecentDocument(null, searchTerm));
            }
            return(PartialView("_SearchDocument", recentDocument));
        }