Example #1
0
        //
        // GET: /Oid/
        public ActionResult View(String id)
        {
            OidInfo model = new OidInfo();

            try
            {
                // Client to the CR admin interface
                ClientRegistryAdminService.ClientRegistryAdminInterfaceClient client = new ClientRegistryAdminService.ClientRegistryAdminInterfaceClient();

                model = client.GetOids().Where(o => o.oid == id).First();
            }
            catch (Exception e)
            {
                Trace.TraceError(e.ToString());
            }

            return(View(model));
        }
Example #2
0
        /// <summary>
        /// Index
        /// </summary>
        public ActionResult Index()
        {
            RegistryStatusModel model = new RegistryStatusModel();

            try
            {
                // Client to the CR admin interface
                ClientRegistryAdminService.ClientRegistryAdminInterfaceClient client = new ClientRegistryAdminService.ClientRegistryAdminInterfaceClient();
                model.Oids = client.GetOids();
                model.ClientRegistryOnline = true;
            }
            catch (Exception e)
            {
                Trace.TraceError(e.ToString());
                model.ClientRegistryOnline = false;
            }

            return(View(model));
        }