コード例 #1
0
        public IHttpActionResult Get(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(BadRequest());
            }

            var log = _loggingRepository.Find(id);

            if (log == null)
            {
                return(NotFound());
            }

            return(Ok(log));
        }