public void 假設使用者輸入InsertProductModel資料(Table table) { this.model = table.CreateInstance<InsertProductModel>(); }
public void InsertProduct(InsertProductModel insertProductModel) { var productModel = Mapper.Map<ProductModel>(insertProductModel); this.ProductRepository.InsertProduct(productModel); }
public ActionResult Create(InsertProductModel product) { this.ProductService.InsertProduct(product); return Json(ApiStatusEnum.Success.ToString()); }
public void 假設輸入資料為(Table table) { this.inputModel = table.CreateInstance<InsertProductModel>(); }