Error recognizing data model field with ADO.NET and ASP.NET

0

I am using Web APIS but only in the Controller. In my view I can not access the model, it tells me that a use is missing or something like that. What I want is to generate a type type input to capture the value and filter by customer name.

    
asked by J. Carlos 05.07.2017 в 03:01
source

1 answer

0

Html Helpers do not work with collections but you have @model IEnumerable<apiuno.Models.tbl_clientes> , which is a collection, defined as your model.

Try changing it to:

@model apiuno.Models.tbl_clientes

Or defining it in html:

<input type="text" name="NombreCia" />
    
answered by 05.07.2017 в 03:59