public ActionResult PmProjects() { int user_id = (Int32)Session["TheUserID"]; MyPMProjects myPMProjects = new MyPMProjects(); //Factories var listaFactories = fac.SearchFactoryByAssignedPm(user_id); var LFactories = Mapper.Map <List <Models.Factories> >(listaFactories); myPMProjects.Factories = LFactories; //Labs - MEDIO funcional var listaLabs = lab.SearchLabProjectByAssignedPm(user_id); var LLabs = Mapper.Map <List <Models.Labs> >(listaLabs); myPMProjects.Labs = LLabs; //DataCenter var listaDataCenter = dc.SearchDataCenterByAssignedPm(user_id); var LDataCenter = Mapper.Map <List <Models.DataCenters> >(listaDataCenter); myPMProjects.DataCenters = LDataCenter; //Office var listaOffice = off.SearchOfficeProjectByAssignedPm(user_id); var LOffices = Mapper.Map <List <Models.Offices> >(listaOffice); myPMProjects.Offices = LOffices; //OtherProject var listaOtherProject = other.SearchOtherProjectByAssignedPm(user_id); var LOPs = Mapper.Map <List <Models.OtherProjects> >(listaOtherProject); myPMProjects.OtherProjects = LOPs; return(View(myPMProjects)); }