Exemplo n.º 1
0
 private Sys GetSystem()
 {
     try
     {
         long requestSystemID = Convert.ToInt64(Context.Request.Headers.Get("eKassir-PointID"));
         if (requestSystemID == 0)
         {
             throw new Exception("Не указан http-заголовок eKassir-PointID");
         }
         return(OraDB.GetSystem(requestSystemID));
     }
     catch (Exception causeEx)
     {
         throw new Exception("Не удалось получить информацию", causeEx);
     }
 }