コード例 #1
0
        public void AddCasualCustomer([FromBody] object Casual)
        {
            var casualString = Casual.ToString();
            //var customerId = JsonConvert.DeserializeObject<Customer>(casualString).CustomerId;
            var casual = JsonConvert.DeserializeObject <CasualCustomer>(casualString);

            _rep.AddCasualCustomer(casual);
        }