public ActionResult Edit(string id) { KlarnaOrderViewModel vm = new KlarnaOrderViewModel(); vm.klarnaOrder = client.Find(id); return(View("Edit", vm)); }
public ActionResult ProcessEdit(KlarnaOrderViewModel vm) { client.Edit(vm.klarnaOrder); return(RedirectToAction("Index")); }
public ActionResult Create(KlarnaOrderViewModel vm) { client.Create(vm.klarnaOrder); return(RedirectToAction("Index")); }