Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
        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);
        }