示例#1
0
        public ActionResult ProductTypeInsert(ProductTypeViewModel model)
        {
            if (model == null)
            {
                throw new ArgumentNullException("productType");
            }

            var productTypeModel = new ProductType()
            {
                Title = model.Title,
                Show  = model.Show
            };

            _productTypeRepository.Add(productTypeModel);
            _productTypeRepository.Complete();

            return(Json(""));
        }