public void 假設使用者輸入InsertProductModel資料(Table table)
 {
     this.model = table.CreateInstance<InsertProductModel>();
 }
Beispiel #2
0
        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>();
 }