예제 #1
0
        public async Task <IActionResult> Create([FromBody] CreateTech request)
        {
            var techId = await _manageTechService.Create(request);

            // if (techId == 0)
            // return BadRequest();
            var tech = await _manageTechService.GetById(techId);

            return(CreatedAtAction(nameof(GetById), new { id = techId }, tech));
        }