Beispiel #1
0
        public ExampleResponse GetDetail(int id)
        {
            ExampleResponse response = new ExampleResponse();

            var value = _exampleRepository.GetDetail(id);

            if (value != null)
            {
                response.id   = value.id;
                response.name = value.Name;
                response.age  = value.Age;
            }

            return(response);
        }