public async Task <ActionResult <StudentsResults> > PostStudentsResults(StudentsResults studentsResults) { _context.StudentsResults.Add(studentsResults); await _context.SaveChangesAsync(); return(CreatedAtAction("GetStudentsResults", new { id = studentsResults.Id }, studentsResults)); }
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()); }
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(); }