public ActionResult Search(SearchViewModel model) { var dependencies = _dependencyRepository.SearchDependecies(); SearchResultModel result = new SearchResultModel() { Results = dependencies.ToList(), Search = model, Page = model.Page, Rows = model.Rows, TotalPages = 10 }; return View("Index", result); }
public SearchResultModel() { Results = new List<Dependency>(); Search = new SearchViewModel(); Page = 1; Rows = 10; TotalPages = 10; }