Example #1
0
        public async Task <IActionResult> PostTwoHorizontalTop([FromBody] CreateTwoHorizontalTopCommand command)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            var result = await _furnitureService.CreateTwoHorizontalTopAsync(command);

            return(Ok(result.ToResponseDto()));
        }