public IActionResult Index(FileSearchModel searchModel) { var result = _fileManagementService.SearchBrochure(searchModel); ViewBag.Host = host; ViewBag.PaginatedModel = _paginatedService.GetMetaData(result.TotalItems, searchModel.PageIndex, searchModel.PageSize); ViewBag.SearchModel = JsonConvert.SerializeObject(searchModel); return(PartialView("_BrochureSearchResult", result.Data)); }
public IActionResult SearchBrochure([FromQuery] FileSearchModel model) { var res = _fileManagementService.SearchBrochure(model); return(Ok(res)); }