public Payment CrearPayment(Payment paymentACrear) { Payment paymentExistente = paymentDAO.ObtenerxOrden(paymentACrear.order_id); if (paymentExistente != null) { throw new WebFaultException <PaymentException>(new PaymentException() { Codigo = 102, Descripcion = "Ya existe un pago para esta orden", }, HttpStatusCode.Conflict); } return(paymentDAO.Crear(paymentACrear)); }