API OData does not show values

0

Use VS 2017, I made a web service following a tutorial, but when executing it, it does not bring anything from the database and instead shows:

<ArrayOfstring>

value1 value2

public class ClienteController : ApiController        
    {
        private bd_banco_cesdeEntities db = new bd_banco_cesdeEntities();
        // GET: api/Cliente
        public IEnumerable<tbl_cliente> Get()
        {
            return db.tbl_cliente.ToList();
        }

The model

public partial class tbl_cliente
    {
        public int DocIdent { get; set; }
        public string Nombre { get; set; }
        public string Apellido { get; set; }
        public string Direccion { get; set; }
        public string Telefono { get; set; }
        public string Estado { get; set; }
        public System.DateTime FechaIngreso { get; set; }
        public string Password { get; set; }
    }
    
asked by Jhon Hernández 07.11.2018 в 00:10
source

1 answer

0

It turns out that in the url we had to take capitals into account. It was like that link

Now it works.

    
answered by 07.11.2018 в 23:44