예제 #1
0
        public Object SaveProduct(dynamic data)
        {
            var product = JsonConvert.DeserializeObject <Product>(data.ToString());

            _productLogic.AddorUpdate(product);

            return(new
            {
                success = true,
                Product = new { Record = product, TotalRecords = 1 },
            });
        }