public async Task <IActionResult> UpdateOrder(Order_Product_Link opl) { db.Entry(opl).State = EntityState.Modified; await db.SaveChangesAsync(); return(NoContent()); }
public async Task <ActionResult <Order_Product_Link> > Create([FromBody] Order_Product_Link opl) { db.elOrder_Product_Links.Add(opl); await db.SaveChangesAsync(); return(CreatedAtAction(nameof(GetOrder_Product_Link), new { id = opl.Id }, opl)); }