public static HomeIndexViewModel ForUserPage(string username, int Page_ID) { IInfastructureService infastructure = new InfastructureService(); IPlannerService plannerService = new PlannerService(); return(new HomeIndexViewModel { navSection = infastructure.PageStructure_GetBySelected(Page_ID), events = plannerService.Event_GetByUser(username) }); }