public static List <SaferMatrixData> GetSaferMatrixData(SearchCorporateER search) { var result = new List <SaferMatrixData>(); using (var dbmDbEntityContainer = new DBMEdition01_Entities()) { result = dbmDbEntityContainer.GetSaferMatrixData(search.SelectedSiteIDs, search.ProgramIDs, search.SelectedStandardIDs, search.SelectedChapterIDs, search.SelectedEPIDs, int.Parse(search.ScoreType), search.StartDate, search.EndDate, search.MatrixID, search.IncludeFsa, search.MockSurveyStatusID, AppSession.CycleID).ToList(); } return(result); }