Пример #1
0
        public void Add(AddPaymentTypeCommand newPaymentTypeCommand)
        {
            var userRepo    = new UserRepository();
            var user        = userRepo.GetByUid(FirebaseUserId);
            var paymentType = new PaymentType();

            paymentType.Id          = -1;
            paymentType.UserId      = user.Id;
            paymentType.ProfileName = newPaymentTypeCommand.ProfileName;
            paymentType.ServiceName = newPaymentTypeCommand.ServiceName;
            _repo.AddPaymentType(paymentType);
        }
Пример #2
0
 public long AddPaymentType(PaymentTypeObject paymentTypeAccount)
 {
     try
     {
         return(_paymentTypeRepository.AddPaymentType(paymentTypeAccount));
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(0);
     }
 }
        public void Create(AddPaymentTypeCommand newPaymentType)
        {
            var repo = new PaymentTypeRepository();

            repo.AddPaymentType(newPaymentType);
        }