コード例 #1
0
        public string Post([FromForm] ProductVM productVM)
        {
            var data = ProductVM.AddNew(UnitOfWork, productVM);

            // upload photo here
            if (data)
            {
                return("Data Saved");
            }
            else
            {
                return("There is error");
            }
        }