public IActionResult addProject(Project project) { _context.Projects.Add(project); _context.SaveChanges(); return(CreatedAtRoute("GetSchool", new { key = project.ProjectKey }, project)); }
public IActionResult addSchool(School school) { _context.Schools.Add(school); _context.SaveChanges(); return(CreatedAtRoute("GetSchool", new { key = school.SchoolKey }, school)); }
public ActionResult <Course> Post(Course course) { _context.Add(course); _context.SaveChanges(); return(course); }