Esempio n. 1
0
 public static AddPaymentViewModel Create(DateTime from, DateTime to, string employeeId, string paycheckId)
 {
     return(new AddPaymentViewModel()
     {
         From = from,
         To = to,
         EmployeeId = employeeId,
         PaycheckId = paycheckId,
         Payment = PaymentViewModel.Create()
     });
 }
Esempio n. 2
0
        /// <summary>
        /// 주어진 거래 ID에 해당하는 결제 상태 페이지를 반환합니다.
        /// </summary>
        /// <param name="transactionId">거래 ID</param>
        /// <returns></returns>
        //[HttpGet("{transactionId}")]
        public ActionResult Index(string transactionId)
        {
            var payment = paymentRepository.GetByTransactionId(transactionId);

            if (payment == null)
            {
                return(PageNotFound(transactionId));
            }
            var checkout = checkoutRepository.GetById(payment.CheckoutId);

            if (checkout == null)
            {
                return(PageNotFound(transactionId));
            }

            var viewModel = PaymentViewModel.Create(payment, checkout);

            return(View(viewModel));
        }
Esempio n. 3
0
        public ActionResult Index(EnumPaymentType paymentType)
        {
            PaymentViewModel viewModel = PaymentViewModel.Create(paymentType, _tPaymentRepository, _tPaymentDetRepository);

            return(View(viewModel));
        }