internal static Example map(ExampleViewData example) { return(new Example { id = example.id, value = example.value }); }
public void Update(int id, [FromBody] ExampleViewData example) { var input = ExampleMapper.map(example); _exampleModel.UpdateExample(id, input); }
public void Create([FromBody] ExampleViewData example) { var input = ExampleMapper.map(example); _exampleModel.CreateExample(input); }