public ENResult insert(uspGEProductPriceSearch_Result data) { try { using (erpStoreEntities db = new erpStoreEntities()) { db.uspGEProductPriceInsert(data.idProduct, data.purchasePrice, data.wholesalePrice, data.wholesaleMinPrice, data.retailPrice, data.retailMinPrice, data.partPrice, data.userCreated, PReturnCode, PReturnMessage); db.uspGEProductPriceAuditInsert(data.idProduct, data.purchasePrice, data.wholesalePrice, data.wholesaleMinPrice, data.retailPrice, data.retailMinPrice, data.partPrice, data.userCreated, PReturnCode, PReturnMessage); return(new ENResult(Convert.ToInt32(PReturnCode.Value), Convert.ToString(PReturnMessage.Value))); } } catch (Exception ex) { return(PUnexpectedError(ex)); } }