public HomeController()
 {
     if (omniKassa == null)
     {
         omniKassa = Endpoint.Create(Environment.SANDBOX, SIGNING_KEY, TOKEN);
     }
     webShopModel = SessionVar.Get <WebShopModel>(SESSION_ORDER);
     if (webShopModel != null)
     {
         orderId     = webShopModel.OrderId;
         orderItemId = webShopModel.GetLastItemId();
     }
 }
Exemplo n.º 2
0
 public async Task <IHttpActionResult> test(string key)
 {
     return(Ok(SessionVar.Get <object>(key)));
 }