Example #1
0
        public Board Get()
        {
            string allText = System.IO.File.ReadAllText("configuration.json");

            EncriptionKey key     = JsonConvert.DeserializeObject <EncriptionKey>(allText);
            var           filekey = Encription.GetEncriptedFile(key);

            Encription.DeEncriptedFile(filekey);
            List <Card> cards = JsonConvert.DeserializeObject <List <Card> >(filekey.Description);

            if (cards == null)
            {
                cards = new List <Card>();
            }
            Board board = BoardManager.SetUpBoard(cards);

            _cache.Set("currentState", board, TimeSpan.FromDays(1));
            //return View(personlist);
            return(board);
        }