// TODO: IHyperMedia zurückgeben public Entity GetById(int key) { var document = new DocumentFactory(); var vokabel = new VokabelnRepository(); return(document.CreateVokabel(Url, vokabel.GetBy(key))); }
public ActionResult TestAnlegen([FromBody] VokabelAnlegen vokabel) { var vokabeln = new VokabelnRepository(); var created = vokabeln.Create(vokabel); return(Created(Url.RouteUrl("Route_Vokabeln_Entities", new { key = created.Id }), null)); }
public VokabelnController() { _vokabeln = new VokabelnRepository(); }