Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Last active February 22, 2018 23:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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