public IActionResult AddPart([FromBody] PartAddForm part) { var id = _furnitureService.AddPart(part); var response = _furnitureService.GetSingle <Part, PartResponse>(id); return(StatusCode(201, response)); }
public IActionResult AddPart([FromBody] PartAddForm part) { var id = _furnitureService.AddPart(part); var response = _furnitureService.GetSingle <Part, PartResponse>(id); return(StatusCode(201, response)); }