Beispiel #1
0
        public async Task <ActionResult <StudentsResults> > PostStudentsResults(StudentsResults studentsResults)
        {
            _context.StudentsResults.Add(studentsResults);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetStudentsResults", new { id = studentsResults.Id }, studentsResults));
        }
Beispiel #2
0
        public async Task <IActionResult> PutStudentsResults(int id, StudentsResults studentsResults)
        {
            if (id != studentsResults.Id)
            {
                return(BadRequest());
            }

            _context.Entry(studentsResults).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!StudentsResultsExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
Beispiel #3
0
        public WriteTestPage()
        {
            this.InitializeComponent();

            testViewModel    = new TestViewModel();
            studentViewModel = new StudentViewModel();
            person           = new Person();
            aPIServices      = new APIServices();
            studentsResults  = new StudentsResults();
            studentViewModel = new StudentViewModel();
        }
 public WriteTestPageContentDialog()
 {
     this.InitializeComponent();
     testViewModel  = new TestViewModel();
     studentResults = new StudentsResults();
 }