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)); }
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()); }
// GET: PaymentTypes public IActionResult Index() { return(View(paymentTypeService.GetAll())); }