public List <OrdenClase> ListarOrdenes() { using (restaurantEntities bdd = new restaurantEntities()) { return(bdd.F_LISTA_DE_ORDENES().Select(l => new OrdenClase { fecha = l.Fecha, Receta = l.Recetas, Total = l.Total }).ToList()); } }
public List <OrdenClase> ListarOrdenes() { using (restaurantEntities bdd = new restaurantEntities()) { return(bdd.F_LISTA_DE_ORDENES().Select(l => new OrdenClase { fecha = l.Fecha, Receta = l.Recetas, Total = l.Total }).ToList()); } }