예제 #1
0
        public Protocol GetProtocolByID(int id, string lang = "en")
        {
            Protocol protocol = databasePlaceholder.Get(id, lang);

            if (protocol == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
            return(protocol);
        }
예제 #2
0
 public Protocol Get(int key) => protocolRepository.Get(key);