Пример #1
0
 internal static Example map(ExampleViewData example)
 {
     return(new Example
     {
         id = example.id,
         value = example.value
     });
 }
Пример #2
0
        public void Update(int id, [FromBody] ExampleViewData example)
        {
            var input = ExampleMapper.map(example);

            _exampleModel.UpdateExample(id, input);
        }
Пример #3
0
        public void Create([FromBody] ExampleViewData example)
        {
            var input = ExampleMapper.map(example);

            _exampleModel.CreateExample(input);
        }