Skip to content
Loading
How to call asp.net web api from View  
  • class="form-group">  
  • @Html.LabelFor(m => m.GenreID)  
  • @Html.DropDownListFor(m => m.GenreID, new SelectList(Model.Genre, "GenreID", "GenreName"), "-Select-", new { @class = "form-control" })  
  •   
  • @Html.HiddenFor(m => m.ID)  
  • @Html.AntiForgeryToken()  
  • "submit" id="save" class="btn btn-primary">Save   
  • Thanks.

    1 Reply

    Know the answer? Post it — somebody with the same question will find it here.