public IActionResult Post([FromBody] CreateProductCategoryDto productCategory) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } return(Ok(_context.Post(productCategory))); }