コード例 #1
0
        public IActionResult AddColor([FromBody] ColorAddForm color)
        {
            var id = _furnitureService.AddOne <Color, ColorAddForm>(color, new List <string>()
            {
                nameof(ColorAddForm.Name), nameof(ColorAddForm.HexCode)
            });
            var response = _furnitureService.GetSingle <Color, ColorsResponse>(id);

            return(StatusCode(201, response));
        }