/// <summary>
 /// 退款
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public virtual bool Refund(PaylineEntity info)
 {
     if (info == null || info.PaylineItems == null || info.Amount == 0)
     {
         return(false);
     }
     info.SaveType = SaveType.Add;
     info.SetNumber();
     if (!PaylineRepository.Refund(info))
     {
         return(false);
     }
     Pay(info);
     return(true);
 }
 /// <summary>
 /// 同步接口
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public virtual bool Create(PaylineEntity info)
 {
     if (info == null)
     {
         return(false);
     }
     info.SaveType = SaveType.Add;
     info.SetNumber();
     if (!PaylineRepository.Create(info))
     {
         return(false);
     }
     Pay(info);
     return(true);
 }