public static TRetunrLoadData Get_Facility(string operationID) { //if (lst == null) lst = new List<string>(); TRetunrLoadData result = new TRetunrLoadData(); PTTGC_EPIEntities db = new PTTGC_EPIEntities(); if (UserAcc.UserExpired()) { result.Status = SystemFunction.process_SessionExpired; } else { int nRoleID = UserAcc.GetObjUser().nRoleID; int nUserID = UserAcc.GetObjUser().nUserID; List <sysGlobalClass.T_Facility> lstFacility = new List <sysGlobalClass.T_Facility>(); if (!string.IsNullOrEmpty(operationID)) { int nID = int.Parse(operationID); lstFacility = SystemFunction.Get_SubFacility(nID, nUserID, nRoleID); } result.lstData_Facility = lstFacility.Distinct().ToList(); } return(result); }