public async Task <IActionResult> Post([FromBody] Student student) { await _context.Students.AddAsync(student); await _context.SaveChangesAsync(); return(Ok(student)); }
public async Task <IActionResult> Post([FromBody] Course course) { await _context.Courses.AddAsync(course); await _context.SaveChangesAsync(); return(Ok(course)); }
public async Task <IActionResult> Post([FromBody] Teacher teacher) { await _context.Teachers.AddAsync(teacher); await _context.SaveChangesAsync(); return(Ok(teacher)); }