public IActionResult Dashboard(int?page, int id) { int pageSize = 2; int pageNumber = (page ?? 1); BDashboardViewModel bdash = new BDashboardViewModel() { Backer = backerManager.FindBackerById(id), BackerProjects = backerprojectMng.GetBackerFundings(id).ToPagedList(pageNumber, pageSize) }; return(View(bdash)); }
public Backer GetBacker(int id) { return(backerManager.FindBackerById(id)); }