예제 #1
0
        public async Task <IActionResult> DeleteFurniture(int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            await _furnitureService.DeleteFurnitureAsync(new DeleteFurnitureCommand
            {
                Id = id
            });

            return(Ok(ResponseDto.Default));
        }