internal static string PutFacilityOffLine(string facilityID) { List <HimDirectory> directory = new List <HimDirectory>(); try { if (ValidateRequestParameter(facilityID, 8, false)) { // update On-Line status of passed Facility to false HimOnLine.UpdateOnLineStatus(facilityID, false); } } catch (Exception ex) { Log.Write("ERROR: " + ex.ToString(), LogLevel.ExceptionOnly); throw; } return("OffLine"); }
internal static List <HimDirectory> GetHimDirectory(string facilityID) { List <HimDirectory> directory = new List <HimDirectory>(); try { if (ValidateRequestParameter(facilityID, 8, false)) { // update On-Line status of passed Facility to true HimOnLine.UpdateOnLineStatus(facilityID, true); // get list of all Facilities using HPI Messaging directory = HimSearch.GetFacilities(); } } catch (Exception ex) { Log.Write("ERROR: " + ex.ToString(), LogLevel.ExceptionOnly); throw; } return(directory); }