Skip to content
Loading
  • Jignesh Kumar
    0
    Hey Edwards,
     
    You can create one model wich containd different list of your models. If you are aware of your data belongs to with model then you can create one model which contains all list of model. like below
     
    1. public class MainModel  
    2.     {  
    3.         List invoiceDetails { get; set; }  
    4.         List saleDetails { get; set; }  
    5.     }  
    6.   
    7.     public class InvoiceModel  
    8.     {  
    9.         public int Id { get; set; }  
    10.         public string Name { get; set; }  
    11.     }  
    12.     public class SalesModel  
    13.     {  
    14.         public int Id { get; set; }  
    15.         public int saleQty { get; set; }  
    16.         public int saleDate { get; set; }  
    17.   
    18.     } 
     
    0