public ActionResult MakeOrder() { var userId = User.Identity.GetUserId(); var viewModel = new CreateOrderViewModel { UserContactDetails = _userService.GetUserContactDetails(userId), PaymentMethods = _paymentMethodService.GetList(), DeliveryTypes = _deliveryTypeService.GetList(), }; return(View(viewModel)); }
public async Task <ActionResult <ApiResponse <List <PaymentMethod> > > > GatPaymentMethodList([FromQuery] Query query) { try { var pagedPaymentMethodList = await _paymentMethodService.GetList(query); return(pagedPaymentMethodList.CreateSuccessResponse()); } catch (Exception exception) { return(BadRequest(exception.CreateErrorResponse())); } }
public ActionResult Index() { var viewModel = _paymentMethodService.GetList(); return(View(viewModel)); }