//物料竞价 public void MaterialQuote(ItemQuoteDto model) { var entity = Mapper.Map <ItemQuoteDto, ItemQuote>(model); entity.InputTime = DateTime.Now; if (entity.Id != 0) { _unitOfWork.RegisterDirty(entity); } else { _unitOfWork.RegisterNew(entity); } _unitOfWork.Commit(); }
public ActionResult MaterialQuote(ItemQuoteDto model) { model.SupplierId = UserId; _supplierService.MaterialQuote(model); return(Json(new { message = "竞价成功!", code = 200 })); }