Ejemplo n.º 1
0
 /// <summary>
 /// Method whose purpose is to insert
 /// a new PaymentMethod record.
 /// </summary>
 /// <param name="paymentMethod">
 /// Newly created PaymentMethodModel object.
 /// </param>
 /// <returns>
 /// Returns true if the query is successfully executed
 /// otherwise returns false.
 /// </returns>
 public bool Insert(PaymentMethodModel paymentMethod)
 {
     return(_paymentMethodRepository.Insert(paymentMethod) > 0 ? true : false);
 }