Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public Protocol Get(int key) => protocolRepository.Get(key);