Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5.  
  6. namespace PedidosTerniumCA.Models.PedidosTerniumCA
  7. {
  8. public class ListadoCaracteristicasMatModel
  9. {
  10. public IList<CaracteristicaMatModel> Perfiles { get; set; }
  11. public IList<CaracteristicaMatModel> Colores { get; set; }
  12. public IList<CaracteristicaMatModel> Calibres { get; set; }
  13. public IList<CaracteristicaMatModel> Sellos { get; set; }
  14.  
  15. public ListadoCaracteristicasMatModel() {
  16. Perfiles = new List<CaracteristicaMatModel>();
  17. Colores = new List<CaracteristicaMatModel>();
  18. Calibres = new List<CaracteristicaMatModel>();
  19. Sellos = new List<CaracteristicaMatModel>();
  20. }
  21.  
  22. public object AsObject() {
  23. return new
  24. {
  25. Perfiles = (from p in Perfiles select p.AsObject()).ToList(),
  26. Colores = (from c in Colores select c.AsObject()).ToList(),
  27. Calibres = (from c in Calibres select c.AsObject()).ToList(),
  28. Sellos = (from s in Sellos select s.AsObject()).ToList(),
  29. };
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement