Example #1
0
        public async Task <IActionResult> Post(ValueForPostDto valueForPostDto)
        {
            var valueToCreate = new Value()
            {
                Name = valueForPostDto.Name
            };

            await _repo.create(valueToCreate);

            return(Created("api/values/", valueToCreate));
        }