Me Lanza el siguiente error:
The entity or complex type 'SisVentaOnlinne.Models.Card' cannot be constructed in a LINQ to Entities query.
Este es el metodo que me genera la lista con los datos:
public List<Card> GetCard()
{
var user = db.Usuarios.Where(u => u.Email == User.Identity.Name).FirstOrDefault();
var card = (from Cards in db.Cards.Where(u => u.Id_Usuario == user.Id_Usuario)
select new Card
{
CardNumber = Cards.CardNumber.Replace((Cards.CardNumber.Substring(1 - 1, 12)), "************"),
IdCard = Cards.IdCard,
}).ToList();
return card.ToList();
}