Ejemplo n.º 1
0
        public EntityEntry <TestManagerV2.Models.Test> AddTest(string testName, string testDescription, string circuitName, int circuitId,
                                                               string environment, bool published)
        {
            var test = _context.Test.Add(new TestManagerV2.Models.Test
            {
                TestName    = testName, TestDescription = testDescription, CircuitName = circuitName,
                Environment = environment, CircuitId = circuitId, Published = published
            });

            _context.SaveChanges();

            return(test);
        }