Esempio n. 1
0
        public DtoTftpServer GetComputerTftpServers(string mac)
        {
            var computerTftpServers = new ServiceProxyDhcp().GetComputerTftpServers(mac);

            if (computerTftpServers == null)
            {
                throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound));
            }
            return(computerTftpServers);
        }
Esempio n. 2
0
        public DtoProxyReservation GetProxyReservation(string mac)
        {
            var proxyReservation = new ServiceProxyDhcp().GetProxyReservation(mac);

            if (proxyReservation == null)
            {
                throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound));
            }
            return(proxyReservation);
        }
Esempio n. 3
0
        public DtoTftpServer GetAllTftpServers()
        {
            var allTftpServers = new ServiceProxyDhcp().GetAllTftpServers();

            if (allTftpServers == null)
            {
                throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound));
            }
            return(allTftpServers);
        }