public void Post([FromBody] PaymentDetails paymentDetails) { //var data = JsonConvert.DeserializeObject<PaymentDetails>(paymentDetails.ToString()); _paymentRepository.AddRecord(paymentDetails); }