예제 #1
0
        private static void CreatePuzzleForUser()
        {
            Console.Clear();
            var puzzle = _puzzleFactory.CreatePuzzle();

            _puzzleRepository.Add(puzzle);
        }
        public Puzzle Post([FromBody] Puzzle puzzle)
        {
            var rc = PuzzleRepository.Add(puzzle);

            PuzzleRepository.SaveChanges();
            return(rc);
        }