public bool InsertOffer([FromBody] Offer item) { var result = _ProductItemRepo.InsertProductOffer(item); if (result) { //var prodtoUpdate = _ProductItemRepo.Get(item.MyProductId); // prodtoUpdate.MyOfferId = item.Id; // _ProductItemRepo.Update(prodtoUpdate); } return(result); }