コード例 #1
0
        public void ProcessTriangle(int[] sides, TriangleType triangleType)
        {
            var stageItem = new TriangleStageItem {
                Sides = sides, Processed = false, TriangleType = triangleType
            };

            _triangleStageRepository.StageItem(stageItem);
        }
コード例 #2
0
        public void StageItem(TriangleStageItem stageItem)
        {
            _context.TriangleStageItems.Add(stageItem);

            _context.SaveChanges();
        }