//[AdminAuthorization] public IHttpActionResult PutSection([FromBody] Section s, [FromUri] int id, [FromUri] int id2) { s.classid = id; s.sectionid = id2; secrepo.Edit(s); s.HyperLinks.Add(new HyperLink() { HRef = "http://localhost:44347/api/admins/classes/" + s.classid + "/sections/" + s.sectionid, HttpMethod = "GET", Relation = "Get Section" }); s.HyperLinks.Add(new HyperLink() { HRef = "http://localhost:44347/api/admins/classes/" + s.classid + "/sections/", HttpMethod = "POST", Relation = "Create Section" }); s.HyperLinks.Add(new HyperLink() { HRef = "http://localhost:44347/api/admins/classes/" + s.classid + "/sections/" + s.sectionid, HttpMethod = "PUT", Relation = "Edit Section" }); s.HyperLinks.Add(new HyperLink() { HRef = "http://localhost:44347/api/admins/classes/" + s.classid + "/sections/" + s.sectionid, HttpMethod = "DELETE", Relation = "Delete Section" }); return(Ok(s)); }