예제 #1
0
        public ActionResult <Command> GetById(int id)
        {
            var command = _repository.GetById(id);

            return(command != null?Ok(command) : NotFound());
        }