示例#1
0
        public IActionResult CompleteCart(int id)
        {
            var list = new SelectList(paymentTypeService.GetAll(), "Id", "PaymentTypeName");

            ViewData["PaymentTypeId"] = new SelectList(paymentTypeService.GetAll(), "Id", "PaymentTypeName");
            Cart cart = cartService.GetById(id);

            if (cart == null)
            {
                return(NotFound());
            }
            return(View(cart));
        }
示例#2
0
        public IActionResult GetAll()
        {
            var paymentsTypes = paymentTypeService.GetAll();

            IEnumerable <PaymentTypeReadDto> paymentsTypesRead = mapper.Map <IEnumerable <PaymentTypeReadDto> >(paymentsTypes);

            return(Ok(paymentsTypesRead));
        }
 public List <PaymentType> GetPayments()
 {
     return(_paymentsTypeService.GetAll());
 }
示例#4
0
 // GET: PaymentTypes
 public IActionResult Index()
 {
     return(View(paymentTypeService.GetAll()));
 }