public void 假設使用者輸入InsertProductModel資料(Table table)
 {
     this.model = table.CreateInstance<InsertProductModel>();
 }
Esempio n. 2
0
        public void InsertProduct(InsertProductModel insertProductModel)
        {
            var productModel = Mapper.Map<ProductModel>(insertProductModel);

            this.ProductRepository.InsertProduct(productModel);
        }
Esempio n. 3
0
        public ActionResult Create(InsertProductModel product)
        {
            this.ProductService.InsertProduct(product);

            return Json(ApiStatusEnum.Success.ToString());
        }
 public void 假設輸入資料為(Table table)
 {
     this.inputModel = table.CreateInstance<InsertProductModel>();
 }