// GET: SavedPaymentInformation public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new SavedPaymentInformationService(userId); var model = service.GetPayment(); return(View(model)); }
public ActionResult Create(SavedPaymentInformationCreate model) { if (!ModelState.IsValid) { return(View(model)); } var userId = Guid.Parse(User.Identity.GetUserId()); var service = new SavedPaymentInformationService(userId); service.CreatePayment(model); return(RedirectToAction("Index")); }