public int AddConnection([FromBody] Models.Terms.Connection connection) { // This works, uncomment it when the real tree is used connection.Save(); return(connection.Connection_Id); return(0); }
public Models.Terms.Connection Post([FromBody] Models.Terms.Connection connection) { connection.Connection_Id_User = Request.GetUser().User_Id; connection.Save(); return(connection); }