Ejemplo n.º 1
0
        public async Task <ActionResult <InventoryItemOptionDTO> > CreateInventoryItemOption([FromRoute] Guid id, [FromBody] InventoryItemOptionRequest InventoryItemOption)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            return(await _inventoryService.CreateInventoryItemOption(id, InventoryItemOption));
        }