public void SetPrice(BidPriceModel model) { var price = Mapper.Map <BidPriceEntity>(model); price.UserId = BidderContext.Current.UserId; _bidPriceRepository.SetPrice(price); }
public void SetPrice(BidPriceModel price) { prices = null; Task.Run(() => { price.Sn = snProvider.Provide(); var url = $"{ApiHttpExecutor.ApiDomian}/Price/SetPrice"; executor.Post(url, JsonConvert.SerializeObject(price)); }); }
private void btnSetPrice_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(productid)) { MessageBox.Show("请先选择商品"); return; } else { FormMoney form = new FormMoney(productid); if (form.ShowDialog() == System.Windows.Forms.DialogResult.Cancel) { var price = new BidPriceModel() { MaxPrice = form.Money, IdResoTemp = productid }; bidPriceService.SetPrice(price); } } }
public void SetPrice(BidPriceModel model) { _priceService.SetPrice(model); }