public ApiReturnModel UploadInquiryOrder([FromBody] ApiUserProductModel apiUserProductModel) { var userInfo = GetCurrentUserInfo(); if (inquiryOrderBusiness.AddUserInquiryOrder(userInfo.Id, apiUserProductModel.Remarks, apiUserProductModel.Price, apiUserProductModel.ImgUrl)) { return(ApiReturnModel.ReturnOk()); } return(ApiReturnModel.ReturnError()); }
/// <summary> /// 产品 模型转换 /// </summary> /// <param name="model"></param> /// <returns></returns> public static BProductDetailModel GetBProductDetailModelByApiUserProductModel(ApiUserProductModel model) { BProductDetailModel bProductDetailModel = new BProductDetailModel() { ImgUrl = model.ImgUrl, Manufactor = model.Manufactor, Price = model.Price, ProductName = model.ProductName, Remarks = model.Remarks, Specifications = model.Specifications }; return(bProductDetailModel); }