コード例 #1
0
        public IActionResult Post([FromBody] ProviderDto dto)
        {
            var serviceInput = _mapper.Map <Provider>(dto);

            var result = _service.CreateEntity(serviceInput);

            return(CreatedAtAction(nameof(SearchById), new { id = result.Id }, null));
        }