Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- namespace PedidosTerniumCA.Models.PedidosTerniumCA
- {
- public class ListadoCaracteristicasMatModel
- {
- public IList<CaracteristicaMatModel> Perfiles { get; set; }
- public IList<CaracteristicaMatModel> Colores { get; set; }
- public IList<CaracteristicaMatModel> Calibres { get; set; }
- public IList<CaracteristicaMatModel> Sellos { get; set; }
- public ListadoCaracteristicasMatModel() {
- Perfiles = new List<CaracteristicaMatModel>();
- Colores = new List<CaracteristicaMatModel>();
- Calibres = new List<CaracteristicaMatModel>();
- Sellos = new List<CaracteristicaMatModel>();
- }
- public object AsObject() {
- return new
- {
- Perfiles = (from p in Perfiles select p.AsObject()).ToList(),
- Colores = (from c in Colores select c.AsObject()).ToList(),
- Calibres = (from c in Calibres select c.AsObject()).ToList(),
- Sellos = (from s in Sellos select s.AsObject()).ToList(),
- };
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement