Does not contain any public definition for GetNumeric ASP.NET

0

Someone who can guide me to correct this error, it appears in the (foreach) and so far I have not been able to correct it, likewise I put the code of my clsEntity, where the properties are .

@model model.entity.Alumno

@{
 ViewBag.Title = "inicio";
}

<h2>inicio</h2>
<table>
<tr>
    <th>Codigo</th>
    <th>Nombre</th>
    <th>Apellido</th>
    <th>Telefono</th>
</tr>
@foreach (var objAlumno in Model)
{
    <tr>
        <td>@objAlumno.IdAlumno </td>
        <td>@objAlumno.Nombre </td>
        <td>@objAlumno.Apellido1 </td>
        <td>@objAlumno.Telefono1 </td>
    </tr>
}

</table> 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace model.entity
{
  public class Alumno
{
    public int idAlumno;
    public string nombre;
    public string Apellido;
    public string Telefono;
    //obtener errores del sistema
    public int estado;


    public int IdAlumno
    {
        get { return idAlumno; }
        set { idAlumno = value; }
    }
    public string Nombre
    {
        get { return nombre; }
        set { nombre = value; }
    }
     public string Apellido1
    {
        get { return Apellido; }
        set { Apellido = value; }
    }
     public string Telefono1
     {
         get { return Telefono; }
         set { Telefono = value; }
     }
     public int Estado
     {
         get { return estado; }
         set { estado = value; }
     }
     public Alumno()
     { 
     }
     public void _Alumno(int idAlumno)
     {
         this.idAlumno = idAlumno;
     }
     public Alumno(int idalumno, string nombre, string Apellido, string  Telefono)
     {
         this.IdAlumno = idAlumno;
         this.Nombre = nombre;
         this.Apellido1 = Apellido;
         this.Telefono1 = Telefono;
     }
   }
}
    
asked by Chuy Mogollan 07.12.2018 в 00:03
source

0 answers