public async Task <IActionResult> PutProduct_subSubCategory(int id, Product_subSubCategory product_subSubCategory) { if (id != product_subSubCategory.id) { return(BadRequest()); } _context.Entry(product_subSubCategory).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Product_subSubCategoryExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <ActionResult <Product_subSubCategory> > PostProduct_subSubCategory(Product_subSubCategory product_subSubCategory) { _context.Product_subSubCategory.Add(product_subSubCategory); await _context.SaveChangesAsync(); return(CreatedAtAction("GetProduct_subSubCategory", new { id = product_subSubCategory.id }, product_subSubCategory)); }