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)); }
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)); }