Skip to content

Instantly share code, notes, and snippets.

@dcomartin dcomartin/view.cshtml
Last active Feb 22, 2018

Embed
What would you like to do?
@if (item.Actions.Any(x => x.Rel == "ChangeQuantity"))
{
<form action="@item.Actions.Single(x => x.Rel == "ChangeQuantity").Href" method="post">
<input type="text" name="quantity"/>
<button type="submit" class="btn">
<i class="fas fa-plus"></i>
</button>
</form>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.