常用方法
常用方法
常用方法
常用方法
public IActionResult GetUserPayTypes(PaymentTypes paymentToAdd) { var newPaymentType = _repository.AddPaymentType(paymentToAdd); if (newPaymentType == null) { return(BadRequest("Your payment type could not be added at this time.")); } return(Created("", newPaymentType)); }